GetModuleHandle
From PowerBuilder Native Interface
IPBX_Marshaler interface:
GetModuleHandle method
Description
Syntax
GetModuleHandle( )
Return Values
Examples
extern pbulong thisModuleHandle;
pbulong SampleMarshaler::GetModuleHandle()
{
return thisModuleHandle;
}
pbulong thisModuleHandle = 0;
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
thisModuleHandle = (pbulong)hModule;
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}