Hi, how can I find other Windows API functions that don't appear to be in Win32? For example, I want to extern this:
GetSecurityInfo
Which MSDN says this about:
Client
Requires Windows Vista, Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header
Declared in Aclapi.h.
Library
Use Advapi32.lib.
DLL
Requires Advapi32.dll.
So how can I extern that please? I tried using Extern "Advapi32.lib" and "Advapi32" and "Aclapi.h" and "Aclapi" but Max just says "Unrecognized calling convention 'advapi32.lib'".
So I went to my MinGW folder and did a find in files search for GetSecurityInfo and found it was in aclapi.h and libadvapi32.a. So I tried externing these with and without the extension, but to no avail. Help!
Also what would happen on a 98/ME machine as it seems that function doesn't exist? Is it safe to have the Extern providing that I don't actually call the function (by detecting what OS I'm running first), or will the actual Extern fail.
Thanks in advance for any help.
GetSecurityInfo
Which MSDN says this about:
Client
Requires Windows Vista, Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header
Declared in Aclapi.h.
Library
Use Advapi32.lib.
DLL
Requires Advapi32.dll.
So how can I extern that please? I tried using Extern "Advapi32.lib" and "Advapi32" and "Aclapi.h" and "Aclapi" but Max just says "Unrecognized calling convention 'advapi32.lib'".
So I went to my MinGW folder and did a find in files search for GetSecurityInfo and found it was in aclapi.h and libadvapi32.a. So I tried externing these with and without the extension, but to no avail. Help!
Also what would happen on a 98/ME machine as it seems that function doesn't exist? Is it safe to have the Extern providing that I don't actually call the function (by detecting what OS I'm running first), or will the actual Extern fail.
Thanks in advance for any help.