Skip to content

Commit 40ad2a3

Browse files
author
Steve Wishnousky
authored
Update get-wpgmptr.md
Mention entry point restriction on using _get_wpgmptr() - only for programs for wide entry points.
1 parent 10dcf0e commit 40ad2a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ errno_t _get_wpgmptr( 
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 `_wpgmptr` global variable contains the full path to the executable associated with the process as a wide-character string. For more information, see [_pgmptr, _wpgmptr](../../c-runtime-library/pgmptr-wpgmptr.md).
41+
Only call `_get_wpgmptr` if your program has a wide entry point, like `wmain()` or `wWinMain()`. The `_wpgmptr` global variable contains the full path to the executable associated with the process as a wide-character string. For more information, see [_pgmptr, _wpgmptr](../../c-runtime-library/pgmptr-wpgmptr.md).
4242

4343
## Requirements
4444

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

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

0 commit comments

Comments
 (0)