Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _MDBROLE_HXX_
      7 #define _MDBROLE_HXX_
      8 
      9 #ifndef WINAPI
     10 #define WINAPI __stdcall
     11 #endif
     12 
     13 #ifdef FASTCALL_IN_STORE
     14 #define __FORCENONFASTCALL WINAPI
     15 #else
     16 #define __FORCENONFASTCALL
     17 #endif
     18 
     19 #define ROLDLLEXP __declspec(dllimport)
     20 
     21 #if (defined(_X86_) && !defined(__x86_64))
     22 #define ROLEAPI __fastcall
     23 #else
     24 #define ROLEAPI
     25 #endif
     26 
     27 WINBOOL ROLDLLEXP ROLEAPI FRoleSid(PSID psid);
     28 HRESULT ROLDLLEXP ROLEAPI HrParseRoleSid(PSID psid,long cbNameBuffer,char rgchName[],ULONG *pptagrole,BYTE *prolescope);
     29 HRESULT ROLDLLEXP ROLEAPI HrConstructRoleSid(char *szRoleName,BYTE rolescope,ULONG ptagrole,PSID *ppsid);
     30 void ROLDLLEXP ROLEAPI FreeRoleSid(PSID psid);
     31 WINBOOL ROLDLLEXP ROLEAPI FCanonicalAcl(PACL pacl);
     32 WINBOOL ROLDLLEXP ROLEAPI FCanonicalAcl(PSECURITY_DESCRIPTOR pntsd);
     33 
     34 #endif
     35