This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to call WINAPI CreateFile instead of IS wrapper?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 03, 2011
09:26 AM
How to call WINAPI CreateFile instead of IS wrapper?
I need to get a file handle to a volume (not an actual file) and it's not clear that I can do that with the IS CreateFile function. What I actually need is the CreateFile function provided by kernel32.dll. Re-declaring CreateFile causes a compilation error. Is there a way to prototype this function with a different name for my IS script to use?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 05, 2011
04:28 PM
The Win32 CreateFile API is already prototyped in InstallScript as CreateFileA and CreateFileW. Use CreateFileW for the Unicode version of the API. You can see the existing prototypes in \InstallShield\2011\Script\ISRT\Include\ISRTWindows.h.