User32SetSystemCursor Method

Enables an application to customize the system cursors.

It replaces the contents of the system cursor specified by the parameter with the contents of the cursor specified by the parameter and then destroys .

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", SetLastError = true)]
public static bool SetSystemCursor(
	IntPtr hCursor,
	SystemCursorId id
)

Parameters

hCursor  IntPtr
A handle to the cursor.

The function replaces the contents of the system cursor specified by parameter with the contents of the cursor handled by parameter.

id  SystemCursorId
The system cursor to replace with the contents of parameter.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also