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

64 bit return value in InstallScript


1 reply to this topic

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 28 May 2002 - 08:51

I'm attempting to call LookupPrivilegeValue from the ADVAPI32 library.  The first two parameters of the call are strings, no problem there.  The third parameter is a pointer to a LUID, which is a 64-bit identifier.

Does anyone have any suggestions as to how I pass the LUID?  InstallShield numbers are only 32-bit.

If possible, I'd like to avoid the use of a C++ dll.

Thanks for any suggestions.
Leigh Ravenhall
Expert Information Services

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 29 May 2002 - 07:04

Answering my own question, in case someone else decides to try silly things like this.

Call the LocalAlloc function from Kernel32.dll which returns a pointer to a block of memory.  Allocate 8 bytes, then pass that pointer to the LookupPrivilegeValue call.
Leigh Ravenhall
Expert Information Services