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.

95 lines
920 B

  1. /*
  2. * RA.h
  3. *
  4. * Author: BreenH
  5. *
  6. * The Remote Administration policy.
  7. */
  8. #ifndef __LC_RA_H__
  9. #define __LC_RA_H__
  10. /*
  11. * Includes
  12. */
  13. #include "policy.h"
  14. /*
  15. * Constants
  16. */
  17. #define LC_POLICY_RA_MAX_SESSIONS 2
  18. /*
  19. * Class Definition
  20. */
  21. class CRAPolicy : public CPolicy
  22. {
  23. public:
  24. /*
  25. * Creation Functions
  26. */
  27. CRAPolicy(
  28. );
  29. ~CRAPolicy(
  30. );
  31. /*
  32. * Administrative Functions
  33. */
  34. ULONG
  35. GetFlags(
  36. );
  37. ULONG
  38. GetId(
  39. );
  40. NTSTATUS
  41. GetInformation(
  42. LPLCPOLICYINFOGENERIC lpPolicyInfo
  43. );
  44. /*
  45. * Licensing Functions
  46. */
  47. NTSTATUS
  48. Logon(
  49. CSession& Session
  50. );
  51. NTSTATUS
  52. Logoff(
  53. CSession& Session
  54. );
  55. /*
  56. * Private Functions
  57. */
  58. private:
  59. NTSTATUS
  60. ReleaseLicense(
  61. CSession& Session
  62. );
  63. NTSTATUS
  64. UseLicense(
  65. CSession& Session
  66. );
  67. LONG m_SessionCount;
  68. };
  69. #endif