Skip to content

Commit aeb97ae

Browse files
author
Steve Wishnousky
authored
Update get-pgmptr.md
Mention entry point restriction on calling _get_pgmptr
1 parent 40ad2a3 commit aeb97ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/c-runtime-library/reference/get-pgmptr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ errno_t _get_pgmptr( 
3838
Returns zero if successful; an error code on failure. If `pValue` is `NULL`, the invalid parameter handler is invoked as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, this function sets `errno` to `EINVAL` and returns `EINVAL`.
3939

4040
## Remarks
41-
The `_pgmptr` global variable contains the full path to the executable associated with the process. For more information, see [_pgmptr, _wpgmptr](../../c-runtime-library/pgmptr-wpgmptr.md).
41+
Only call `_get_pgmptr` if your program has a narrow entry point, like `main()` or `WinMain()`. The `_pgmptr` global variable contains the full path to the executable associated with the process. For more information, see [_pgmptr, _wpgmptr](../../c-runtime-library/pgmptr-wpgmptr.md).
4242

4343
## Requirements
4444

@@ -49,4 +49,4 @@ errno_t _get_pgmptr( 
4949
For more compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md) in the Introduction.
5050

5151
## See Also
52-
[_get_wpgmptr](../../c-runtime-library/reference/get-wpgmptr.md)
52+
[_get_wpgmptr](../../c-runtime-library/reference/get-wpgmptr.md)

0 commit comments

Comments
 (0)