Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/c-runtime-library/reference/get-pgmptr.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ errno_t _get_pgmptr( 
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`.

## Remarks
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).
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).

## Requirements

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

## See Also
[_get_wpgmptr](../../c-runtime-library/reference/get-wpgmptr.md)
[_get_wpgmptr](../../c-runtime-library/reference/get-wpgmptr.md)
4 changes: 2 additions & 2 deletions docs/c-runtime-library/reference/get-wpgmptr.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ errno_t _get_wpgmptr( 
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`.

## Remarks
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).
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).

## Requirements

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

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