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.

60 lines
1.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // rasuser.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares the class RasUser.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 03/20/1998 Original version.
  16. // 05/19/1998 Converted to NtSamHandler.
  17. // 06/03/1998 Always use RAS/MPR for local users.
  18. // 06/23/1998 Use DCLocator to find server.
  19. // 07/09/1998 Always use RasAdminUserGetInfo
  20. // 07/11/1998 Switch to IASGetRASUserInfo.
  21. //
  22. ///////////////////////////////////////////////////////////////////////////////
  23. #ifndef _RASUSER_H_
  24. #define _RASUSER_H_
  25. #include <samutil.h>
  26. ///////////////////////////////////////////////////////////////////////////////
  27. //
  28. // CLASS
  29. //
  30. // RasUser
  31. //
  32. // DESCRIPTION
  33. //
  34. // This class implements a Request Handler for retrieving per-user
  35. // attributes through the RAS/MPR API.
  36. //
  37. ///////////////////////////////////////////////////////////////////////////////
  38. class RasUser
  39. : public NtSamHandler
  40. {
  41. public:
  42. virtual HRESULT initialize() throw ();
  43. virtual void finalize() throw ();
  44. virtual IASREQUESTSTATUS processUser(
  45. IASRequest& request,
  46. PCWSTR domainName,
  47. PCWSTR username
  48. );
  49. protected:
  50. // Pre-allocated attributes for the dial-in bit.
  51. IASAttribute allowAccess, denyAccess, callbackFramed;
  52. };
  53. #endif // _RASUSER_H_