Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1.2 KiB

  1. #include "stdafx.h"
  2. DWORD AddUserToMetabaseACL(CString csKeyPath, LPTSTR szUserToAdd, DWORD dwAccessMask = 0x00 );
  3. DWORD AddUserToMetabaseACL_Rec(CString csKeyPath, LPTSTR szUserToAdd, DWORD dwAccessMask = 0x00 );
  4. BOOL IsLocalAccount(LPCTSTR pAccnt, DWORD *dwErr );
  5. int IsDomainSpecifiedOtherThanLocalMachine(LPCTSTR pDomainUserName);
  6. #ifndef _CHICAGO_
  7. int CreateIUSRAccount(CString csUsername, CString csPassword, INT* piNewlyCreatedUser);
  8. int CreateIWAMAccount(CString csUsername, CString csPassword, INT* piNewlyCreatedUser);
  9. DWORD MigrateServiceIpSec(LPWSTR pszSrvRegKey,LPWSTR pszSrvMetabasePath);
  10. BOOL CleanAdminACL(SECURITY_DESCRIPTOR *pSD);
  11. void FixAdminACL(LPTSTR szKeyPath);
  12. DWORD SetAdminACL(LPCTSTR szKeyPath, DWORD dwAccessForEveryone);
  13. DWORD SetAdminACL_wrap(LPCTSTR szKeyPath, DWORD dwAccessForEveryoneAccount, BOOL bDisplayMsgOnErrFlag);
  14. DWORD WriteSDtoMetaBase(PSECURITY_DESCRIPTOR outpSD, LPCTSTR szKeyPath);
  15. DWORD WriteSessiontoMetaBase(LPCTSTR szKeyPath);
  16. BOOL AddUserAccessToSD(IN PSECURITY_DESCRIPTOR pSd,IN PSID pSid,IN DWORD NewAccess,IN UCHAR TheAceType,OUT PSECURITY_DESCRIPTOR *ppSdNew);
  17. void DumpAdminACL(HANDLE hFile,PSECURITY_DESCRIPTOR pSD);
  18. #endif //_CHICAGO_