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.

81 lines
1.3 KiB

  1. #ifndef _CREDEN_HXX_
  2. #define _CREDEN_HXX_
  3. class CCredentials;
  4. class CCredentials
  5. {
  6. public:
  7. CCredentials::CCredentials();
  8. CCredentials::CCredentials(
  9. LPWSTR lpszUserName,
  10. LPWSTR lpszPassword,
  11. DWORD dwAuthFlags
  12. );
  13. CCredentials::CCredentials(
  14. const CCredentials& Credentials
  15. );
  16. CCredentials::~CCredentials();
  17. HRESULT
  18. CCredentials::GetUserName(
  19. LPWSTR * lppszUserName
  20. );
  21. HRESULT
  22. CCredentials::GetPassword(
  23. LPWSTR * lppszPassword
  24. );
  25. HRESULT
  26. CCredentials::SetUserName(
  27. LPWSTR lpszUserName
  28. );
  29. HRESULT
  30. CCredentials::SetPassword(
  31. LPWSTR lpszPassword
  32. );
  33. void
  34. CCredentials::operator=(
  35. const CCredentials& other
  36. );
  37. friend BOOL
  38. operator==(
  39. CCredentials& x,
  40. CCredentials& y
  41. );
  42. BOOL
  43. CCredentials::IsNullCredentials(
  44. );
  45. DWORD
  46. CCredentials::GetAuthFlags(
  47. );
  48. void
  49. CCredentials::SetAuthFlags(
  50. DWORD dwAuthFlags
  51. );
  52. private:
  53. LPWSTR _lpszUserName;
  54. LPWSTR _lpszPassword;
  55. DWORD _dwAuthFlags;
  56. DWORD _dwPasswordLen;
  57. };
  58. #endif // ifndef _CREDEN_HXX_