User32LoadCursorFromFile Method
Creates a cursor based on data contained in a file.
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", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static IntPtr LoadCursorFromFile(
string lpFileName
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function LoadCursorFromFile (
lpFileName As String
) As IntPtr
Dim lpFileName As String
Dim returnValue As IntPtr
returnValue = User32.LoadCursorFromFile(lpFileName)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static IntPtr LoadCursorFromFile(
String^ lpFileName
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member LoadCursorFromFile :
lpFileName : string -> IntPtr
No code example is currently available or this language may not be supported.
- lpFileName String
-
The source of the file data to be used to create the cursor.
The data in the file must be in either .CUR or .ANI format.
IntPtr
If the function succeeds, the return value is an
IntPtr handle to the new cursor.
If the function fails, the return value is
Zero.