IInputCursorStaticsInterop::CreateFromHCursor method (microsoft.ui.input.inputcursor.interop.h)
Creates an InputCursor from the provided cursor handle.
Syntax
HRESULT CreateFromHCursor(
HCURSOR cursor,
IInputCursor **result
);
Parameters
cursor
Type: HCURSOR
A handle to the cursor.
result
The InputCursor.
If cursor specifies a system cursor, an InputSystemCursor is created. Otherwise, an InputCustomCursor is created by copying the cursor.
Return value
Type: HRESULT
If the function succeeds it returns ERROR_SUCCESS. Otherwise, the function returns an error code.
Requirements
Requirement | Value |
---|---|
Header | microsoft.ui.input.inputcursor.interop.h |