windows-nt/Source/XPSP1/NT/inetsrv/iis/setup/osrc/setuser.h

29 lines
1.8 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include "stdafx.h"
#ifndef _CHICAGO_
INT DeleteGuestUser(LPCTSTR szUsername, INT *UserWasDeleted);
int GetGuestUserName_SlowWay(LPWSTR lpGuestUsrName);
int GetGuestGrpName(LPTSTR lpGuestGrpName);
void InitLsaString(PLSA_UNICODE_STRING LsaString,LPWSTR String);
DWORD OpenPolicy(LPTSTR ServerName,DWORD DesiredAccess,PLSA_HANDLE PolicyHandle);
INT RegisterAccountToLocalGroup(LPCTSTR szAccountName, LPCTSTR szLocalGroupName, BOOL fAction);
INT RegisterAccountUserRights(LPCTSTR szAccountName, BOOL fAction, BOOL fSpecicaliwamaccount);
BOOL IsUserExist( LPWSTR strUsername );
INT CreateUser( LPCTSTR szUsername, LPCTSTR szPassword, LPCTSTR szComment, LPCTSTR szFullName, BOOL fiWamUser,INT *NewlyCreated);
BOOL GuestAccEnabled();
NET_API_STATUS NetpNtStatusToApiStatus (IN NTSTATUS NtStatus);
NET_API_STATUS UaspGetDomainId(IN LPCWSTR ServerName OPTIONAL,OUT PSAM_HANDLE SamServerHandle OPTIONAL,OUT PPOLICY_ACCOUNT_DOMAIN_INFO * AccountDomainInfo);
NET_API_STATUS SampCreateFullSid(IN PSID DomainSid,IN ULONG Rid,OUT PSID *AccountSid);
int GetGuestUserNameForDomain_FastWay(LPTSTR szDomainToLookUp,LPTSTR lpGuestUsrName);
void GetGuestUserName(LPTSTR lpOutGuestUsrName);
int ChangeUserPassword(IN LPTSTR szUserName, IN LPTSTR szNewPassword);
BOOL DoesUserHaveThisRight(LPCTSTR szAccountName, LPTSTR PrivilegeName);
HRESULT CreateGroup(LPTSTR szGroupName, LPCTSTR szGroupComment, int iAction);
int CreateGroupDC(LPTSTR szGroupName, LPCTSTR szGroupComment);
#endif //_CHICAGO_
NET_API_STATUS NetpNtStatusToApiStatus(IN NTSTATUS NtStatus);
int GetGuestUserNameForDomain_FastWay(LPTSTR szDomainToLookUp,LPTSTR lpGuestUsrName);
void GetGuestUserName(LPTSTR lpOutGuestUsrName);
BOOL DoesUserHaveThisRight(LPCTSTR szAccountName, LPTSTR PrivilegeName);