User32GetGuiResources(IntPtr, GetGuiResourcesFlags) Method
Retrieves the count of handles to graphical user interface (GUI) objects in use by the specified process.
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("User32.dll", ExactSpelling = true, SetLastError = true)]
public static uint GetGuiResources(
IntPtr hProcess,
GetGuiResourcesFlags flags
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetGuiResources (
hProcess As IntPtr,
flags As GetGuiResourcesFlags
) As UInteger
Dim hProcess As IntPtr
Dim flags As GetGuiResourcesFlags
Dim returnValue As UInteger
returnValue = User32.GetGuiResources(hProcess,
flags)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static unsigned int GetGuiResources(
IntPtr hProcess,
GetGuiResourcesFlags flags
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetGuiResources :
hProcess : IntPtr *
flags : GetGuiResourcesFlags -> uint32
No code example is currently available or this language may not be supported.
- hProcess IntPtr
-
A handle to the process.
The handle must refer to a process in the current session,
and must have the PROCESS_QUERY_INFORMATION access right.
- flags GetGuiResourcesFlags
-
The GUI object type.
UInt32
If the function succeeds, the return value is the count of handles to GUI objects in use by the process.
If no GUI objects are in use, the return value is zero.
If the function fails, the return value is zero.
To get extended error information, call
GetLastWin32Error.