PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the "system handle" (HINSTANCE) of the current program. Then, this handle can be used in the system APIs that require this parameter.
Notes:
  • In 32-bit, if several instances of the same program are run, they can share the same instance value.
  • The system handle corresponds to the base address of the executable (internal parameter of the process, not depending on the application or on the computer).
Example
// Retrieve the instance of the program
hInstance is int = Instance()
Syntax
<Result> = Instance()
<Result>: Integer
System handle of the program.
Components
WINDEVReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Linux wd230vm.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment