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.

31 lines
2.1 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. VOID UpdateUserRights(LPCTSTR account,LPTSTR pstrRights[],DWORD dwNofRights,INT iDoAdd);
  20. DWORD ModifyRightToUserAccount(LPCTSTR szAccountName, LPTSTR PrivilegeName, INT iDoAdd);
  21. DWORD DoesUserHaveThisRight(LPCTSTR szAccountName, LPTSTR PrivilegeName,BOOL *fHaveThatRight);
  22. HRESULT CreateGroup(LPCTSTR szGroupName, LPCTSTR szGroupComment, int iAction, int iFlagForSpecialGroup);
  23. int CreateGroupDC(LPTSTR szGroupName, LPCTSTR szGroupComment);
  24. BOOL LocalGroupExists( LPCWSTR wszGroupName );
  25. #endif //_CHICAGO_
  26. NET_API_STATUS NetpNtStatusToApiStatus(IN NTSTATUS NtStatus);
  27. int GetGuestUserNameForDomain_FastWay(LPTSTR szDomainToLookUp,LPTSTR lpGuestUsrName);
  28. void GetGuestUserName(LPTSTR lpOutGuestUsrName);
  29. BOOL DoesUserHaveThisRight(LPCTSTR szAccountName, LPTSTR PrivilegeName);