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

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