Function Reference


Loads the specified cursor resource from the executable (.exe) file

#include <WinAPIRes.au3>
_WinAPI_LoadCursor ( $hInstance, $sName )


$hInstance Handle to an instance of the module whose executable file contains the cursor to be loaded.
$sName The name of the cursor resource or resource identifier to be loaded. To use one of the predefined
cursors, the application must set the $hInstance parameter to 0
and the $sName parameter to oneof the following values.

Return Value

Success: Handle to the newly loaded cursor.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.


This function loads the cursor resource only if it has not been loaded; otherwise, it retrieves the handle to
the existing resource.

See Also

Search LoadCursor in MSDN Library.