Kernel32GetHandleInformation Method
Retrieves 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 GetHandleInformation(
IntPtr hObject,
out HandleFlags refFlags
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function GetHandleInformation (
hObject As IntPtr,
<OutAttribute> ByRef refFlags As HandleFlags
) As Boolean
Dim hObject As IntPtr
Dim refFlags As HandleFlags
Dim returnValue As Boolean
returnValue = Kernel32.GetHandleInformation(hObject,
refFlags)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool GetHandleInformation(
[InAttribute] IntPtr hObject,
[OutAttribute] HandleFlags% refFlags
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member GetHandleInformation :
hObject : IntPtr *
refFlags : HandleFlags byref -> 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 retrieved.
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.
- refFlags HandleFlags
-
A variable that receives flags that specify properties of the object handle.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.