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.

70 lines
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // ntsamperuser.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares the class NTSamPerUser.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 05/19/1998 Original version.
  16. // 01/19/1999 Process Access-Challenge's.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef _NTSAMPERUSER_H_
  20. #define _NTSAMPERUSER_H_
  21. #include <iastl.h>
  22. #include <netuser.h>
  23. #include <ntdsuser.h>
  24. #include <rasuser.h>
  25. ///////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CLASS
  28. //
  29. // NTSamPerUser
  30. //
  31. // DESCRIPTION
  32. //
  33. // This class implements a Request Handler for retrieving per-user
  34. // attributes for NT-SAM users.
  35. //
  36. ///////////////////////////////////////////////////////////////////////////////
  37. class ATL_NO_VTABLE NTSamPerUser
  38. : public IASTL::IASRequestHandlerSync,
  39. public CComCoClass<NTSamPerUser, &__uuidof(NTSamPerUser)>
  40. {
  41. public:
  42. IAS_DECLARE_OBJECT_ID(IAS_PROVIDER_MICROSOFT_NTSAM_PERUSER)
  43. IAS_DECLARE_REGISTRY(NTSamPerUser, 1, 0, IASTypeLibrary)
  44. BEGIN_IAS_RESPONSE_MAP()
  45. IAS_RESPONSE_ENTRY(IAS_RESPONSE_INVALID)
  46. IAS_RESPONSE_ENTRY(IAS_RESPONSE_ACCESS_ACCEPT)
  47. IAS_RESPONSE_ENTRY(IAS_RESPONSE_ACCESS_CHALLENGE)
  48. END_IAS_RESPONSE_MAP()
  49. //////////
  50. // IIasComponent
  51. //////////
  52. STDMETHOD(Initialize)();
  53. STDMETHOD(Shutdown)();
  54. protected:
  55. virtual IASREQUESTSTATUS onSyncRequest(IRequest* pRequest) throw ();
  56. NetUser netp;
  57. NTDSUser ntds;
  58. RasUser ras;
  59. };
  60. #endif // _NTSAMPERUSER_H_