RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.MainInstance Variable

Indicates the instance handle for the main executable.

Pascal
MainInstance: LongWord;
C++
LongWord MainInstance;

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:
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!