Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Handle of a window installation using a DLL.


1 reply to this topic

Ajawl

Ajawl
  • Members
  • 54 posts

Posted 14 March 2003 - 15:51

Hi,
I am writing a function in a DLL, using Visual C, to be called in a custom action.
The problem is that some APIs need the handle to the parent window (HWND).
Calling a DLL function from a custom action, just a argument (type MSIHANDLE) is passed to the DLL. This type of data is not the same as HWND.
Does anybody know how can I get the parent window handle?

Thank you very much,
Ajawl

Linda

Linda
  • Members
  • 5 posts

Posted 03 April 2003 - 22:49

Not sure if this is what you need but...


MSIHANDLE hInstall = NULL;
//this returns the handle to the active installation database
hInstall = MsiGetActiveDatabase(hInstall);

Linda
Linda Schneider[br]Senior Systems Analyst[br]Eglin AFB FL