Skip to content
Open
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
1 change: 1 addition & 0 deletions sdk-api-src/content/winuser/nf-winuser-getnextwindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Returns a handle to the window above the given window.
Type: <b>HWND</b>

If the function succeeds, the return value is a window handle. If no window exists with the specified relationship to the specified window, the return value is <b>NULL</b>. To get extended error information, call <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a>.
The function does not clear the last error information. To determine success or failure in case of <b>NULL</b> return value, clear the last error information by calling <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-setlasterror">SetLastError</a> function with 0 value, then call <b>GetNextWindow</b>. Function failure will be indicated by a return value of <b>NULL</b> and a <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a> function result that is nonzero.

## -remarks

Expand Down
1 change: 1 addition & 0 deletions sdk-api-src/content/winuser/nf-winuser-gettopwindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ A handle to the parent window whose child windows are to be examined. If this pa
Type: <b>HWND</b>

If the function succeeds, the return value is a handle to the child window at the top of the Z order. If the specified window has no child windows, the return value is <b>NULL</b>. To get extended error information, use the <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a> function.
The function does not clear the last error information. To determine success or failure in case of <b>NULL</b> return value, clear the last error information by calling <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-setlasterror">SetLastError</a> function with 0 value, then call <b>GetTopWindow</b>. Function failure will be indicated by a return value of <b>NULL</b> and a <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a> function result that is nonzero.

## -see-also

Expand Down
1 change: 1 addition & 0 deletions sdk-api-src/content/winuser/nf-winuser-getwindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ The retrieved handle identifies the specified window's owner window, if any. For
Type: <b>HWND</b>

If the function succeeds, the return value is a window handle. If no window exists with the specified relationship to the specified window, the return value is <b>NULL</b>. To get extended error information, call <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a>.
The function does not clear the last error information. To determine success or failure in case of <b>NULL</b> return value, clear the last error information by calling <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-setlasterror">SetLastError</a> function with 0 value, then call <b>GetWindow</b>. Function failure will be indicated by a return value of <b>NULL</b> and a <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a> function result that is nonzero.

## -remarks

Expand Down