User32GetGuiResources(IntPtr, GetGuiResourcesFlags) Method

Retrieves the count of handles to graphical user interface (GUI) objects in use by the specified process.

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("User32.dll", ExactSpelling = true, SetLastError = true)]
public static uint GetGuiResources(
	IntPtr hProcess,
	GetGuiResourcesFlags flags
)

Parameters

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.

Return Value

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.

Remarks

See Also