RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.MainInstance Variable

Indicates the instance handle for the main executable.

Pascal
MainInstance: LongWord;
C++
LongWord MainInstance;

System

Use MainInstance to obtain the instance handle for the main executable of an application. This is useful in applications that use runtime libraries or packages, when you need the handle for the executable rather than for the library.

Note:
 

HInstance 

FindHInstance

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!