March 2000
Intermediate to advanced
576 pages
18h 13m
English
FindHInstance Function
function FindHInstance(Ref: Pointer): LongInt;
FindHInstance returns the instance handle of the
module that contains the given code pointer. The module might be the
application, a DLL, or a runtime package that the application or DLL
loads. If the pointer is not a valid code pointer,
FindHInstance returns
zero.
Feel free to call FindHInstance or
FindClassHInstance, whichever is more convenient.
FindHInstance is a real function.
Earlier releases of Delphi required you to call
FindHInstance to get the instance handle for a
package. The current release lets you use the
HInstance variable, so there is little need for
FindHInstance in most applications.
| FindClassHInstance Function, FindResourceHInstance Function, HInstance Variable, MainInstance Variable |
Read now
Unlock full access