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 .
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", SetLastError = true)]
public static bool SetSystemCursor(
IntPtr hCursor,
SystemCursorId id
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function SetSystemCursor (
hCursor As IntPtr,
id As SystemCursorId
) As Boolean
Dim hCursor As IntPtr
Dim id As SystemCursorId
Dim returnValue As Boolean
returnValue = User32.SetSystemCursor(hCursor,
id)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool SetSystemCursor(
IntPtr hCursor,
SystemCursorId id
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member SetSystemCursor :
hCursor : IntPtr *
id : SystemCursorId -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.