The SetHandleInformation function sets certain properties of an object handle. The information is specified as a set of bit flags.
BOOL SetHandleInformation (
HANDLE hObject, |
// handle to an object |
DWORD dwMask, |
// specifies flags to change |
DWORD dwFlags |
// specifies new values for flags |
); |
Value |
Meaning |
HANDLE_FLAG_INHERIT |
If this flag is set, a child process created with the bInheritHandles parameter of CreateProcess set to TRUE will inherit the object handle. |
HANDLE_FLAG_PROTECT_FROM_CLOSE |
If this flag is set, calling the CloseHandle function will not close the object handle. |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Note that you must set a change mask bit flag in dwMask in order to set or clear the associated bit flag in dwFlags.
CreateProcess, CloseHandle, GetHandleInformation
file: /Techref/os/win/api/win32/func/src/f79_6.htm, NaNKB (1 imgs) in 0.076s is NaNKBps, updated: 2002/11/1 19:05, local time: 2025/4/25 21:21,
18.216.16.236:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/Techref/os/win/api/win32/func/src/f79_6.htm"> SetHandleInformation</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.