Error when using AddAccessAllowedAceEx api
Posted on 2005-04-18
I am trying to use the AddAccessAllowedAceEx api in VB 6 to set permissions on a folder so that new ACEs can be inherited by files. However, I keep getting the following error when I compile the program: Compile error: User-defined type not defined.
I am using the following declaration in a module:
Declare Function AddAccessAllowedAceEx Lib "advapi32.dll" (ByVal pAcl As Struct_MembersOf_PACL, ByVal dwAceRevision As Long, ByVal AceFlags As Long, ByVal AccessMask As Long, ByRef pSid As SID) As Long
Any help would be appreciated.