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.

28 lines
1.8 KiB

  1. #include "stdafx.h"
  2. #ifndef _CHICAGO_
  3. INT DeleteGuestUser(LPCTSTR szUsername, INT *UserWasDeleted);
  4. int GetGuestUserName_SlowWay(LPWSTR lpGuestUsrName);
  5. int GetGuestGrpName(LPTSTR lpGuestGrpName);
  6. void InitLsaString(PLSA_UNICODE_STRING LsaString,LPWSTR String);
  7. DWORD OpenPolicy(LPTSTR ServerName,DWORD DesiredAccess,PLSA_HANDLE PolicyHandle);
  8. INT RegisterAccountToLocalGroup(LPCTSTR szAccountName, LPCTSTR szLocalGroupName, BOOL fAction);
  9. INT RegisterAccountUserRights(LPCTSTR szAccountName, BOOL fAction, BOOL fSpecicaliwamaccount);
  10. BOOL IsUserExist( LPWSTR strUsername );
  11. INT CreateUser( LPCTSTR szUsername, LPCTSTR szPassword, LPCTSTR szComment, LPCTSTR szFullName, BOOL fiWamUser,INT *NewlyCreated);
  12. BOOL GuestAccEnabled();
  13. NET_API_STATUS NetpNtStatusToApiStatus (IN NTSTATUS NtStatus);
  14. NET_API_STATUS UaspGetDomainId(IN LPCWSTR ServerName OPTIONAL,OUT PSAM_HANDLE SamServerHandle OPTIONAL,OUT PPOLICY_ACCOUNT_DOMAIN_INFO * AccountDomainInfo);
  15. NET_API_STATUS SampCreateFullSid(IN PSID DomainSid,IN ULONG Rid,OUT PSID *AccountSid);
  16. int GetGuestUserNameForDomain_FastWay(LPTSTR szDomainToLookUp,LPTSTR lpGuestUsrName);
  17. void GetGuestUserName(LPTSTR lpOutGuestUsrName);
  18. int ChangeUserPassword(IN LPTSTR szUserName, IN LPTSTR szNewPassword);
  19. BOOL DoesUserHaveThisRight(LPCTSTR szAccountName, LPTSTR PrivilegeName);
  20. HRESULT CreateGroup(LPTSTR szGroupName, LPCTSTR szGroupComment, int iAction);
  21. int CreateGroupDC(LPTSTR szGroupName, LPCTSTR szGroupComment);
  22. #endif //_CHICAGO_
  23. NET_API_STATUS NetpNtStatusToApiStatus(IN NTSTATUS NtStatus);
  24. int GetGuestUserNameForDomain_FastWay(LPTSTR szDomainToLookUp,LPTSTR lpGuestUsrName);
  25. void GetGuestUserName(LPTSTR lpOutGuestUsrName);
  26. BOOL DoesUserHaveThisRight(LPCTSTR szAccountName, LPTSTR PrivilegeName);