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

Problem with API calls in kernel32.dll


1 reply to this topic

aseyer

aseyer
  • Members
  • 21 posts

Posted 13 June 2002 - 22:11

I need to call the API call GetSystemInfo in kernel32.dll

However, since the call conflicts with the built in InstallShield function GetSystemInfo, I get an error on compile.


prototype BOOL KERNEL.GetSystemInfo(BYVAL STRING, BYREF STRING, BYREF LONG);
bResult = GetSystemInfo("wProcessorLevel",szUserProfile, nvLength);

Error C8014 'GetSystemInfo': identifier already defined.

Is there anyway to create an alias for this function, or call it via another name?

Blake Miller Wonder

Blake Miller Wonder
  • Members
  • 121 posts

Posted 17 June 2002 - 17:12

Sometimes, you can tell Installshield to go to a DLL for a function by prefixing the function name with the name of the DLL and a period.

Try this in your script instead:

bResult = KERNEL.GetSystemInfo("wProcessorLevel",szUserProfile, nvLength);