LoadCursor function Null safety user32
Loads the specified cursor resource from the executable (.EXE) file associated with an application instance. Note: this function has been superseded by the LoadImage function.
HCURSOR LoadCursorW(
HINSTANCE hInstance,
LPCWSTR lpCursorName
);
Implementation
int LoadCursor(int hInstance, Pointer<Utf16> lpCursorName) {
final _LoadCursor = _user32.lookupFunction<
IntPtr Function(IntPtr hInstance, Pointer<Utf16> lpCursorName),
int Function(int hInstance, Pointer<Utf16> lpCursorName)>('LoadCursorW');
return _LoadCursor(hInstance, lpCursorName);
}