Kernel32SetHandleInformation Method
Sets certain properties of an object handle.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function SetHandleInformation (
hObject As IntPtr,
mask As HandleFlags,
flags As HandleFlags
) As Boolean
Dim hObject As IntPtr
Dim mask As HandleFlags
Dim flags As HandleFlags
Dim returnValue As Boolean
returnValue = Kernel32.SetHandleInformation(hObject,
mask, flags)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool SetHandleInformation(
[InAttribute] IntPtr hObject,
HandleFlags mask,
HandleFlags flags
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member SetHandleInformation :
hObject : IntPtr *
mask : HandleFlags *
flags : HandleFlags -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.