Skip to content

Conversation

@RatinCN
Copy link
Contributor

@RatinCN RatinCN commented Jun 6, 2025

  • SetStdHandleEx is a NT6 API, see also "processenv.h" in Windows SDK:
#if (_WIN32_WINNT >= 0x0600)

WINBASEAPI
BOOL
WINAPI
SetStdHandleEx(
    _In_ DWORD nStdHandle,
    _In_ HANDLE hHandle,
    _Out_opt_ PHANDLE phPrevValue
    );

#endif // _WIN32_WINNT >= 0x0600
  • It returns BOOL, zero means failed and nonzero means succeeded. S_OK is 0, which should be a HRESULT value.

@prmerger-automator
Copy link

@RatinCN : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@Karl-Bridge-Microsoft Karl-Bridge-Microsoft merged commit 433fbde into MicrosoftDocs:docs Jun 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants