Kernel32SetHandleInformation Method

Sets certain properties of an object handle.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool SetHandleInformation(
	IntPtr hObject,
	HandleFlags mask,
	HandleFlags flags
)

Parameters

hObject  IntPtr
A handle to an object whose information is to be set.

You can specify a handle to one of the following types of objects: access token, console input buffer, console screen buffer, event, file, file mapping, job, mailslot, mutex, pipe, printer, process, registry key, semaphore, serial communication device, socket, thread, or waitable timer.

mask  HandleFlags
A mask that specifies the flags to be changed.
flags  HandleFlags
Flags that specifies properties of the object handle.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also