Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

22 lines
1.2 KiB

#include "stdafx.h"
DWORD AddUserToMetabaseACL(CString csKeyPath, LPTSTR szUserToAdd);
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);
VOID SetLocalHostRestriction(LPCTSTR szKeyPath);
DWORD SetIISADMINRestriction(LPCTSTR szKeyPath);
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_