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.

42 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // File: N M P O L I C Y . H
  7. //
  8. // Contents: Interface for verifying NLA policy settings.
  9. //
  10. // Notes:
  11. //
  12. // Author: ckotze 12 Dec 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nmbase.h"
  17. #include "nmres.h"
  18. #include "gpnla.h"
  19. class ATL_NO_VTABLE CNetMachinePolicies :
  20. public CComObjectRootEx <CComMultiThreadModel>,
  21. public CComCoClass <CNetMachinePolicies,
  22. &CLSID_NetGroupPolicies>,
  23. public INetMachinePolicies
  24. {
  25. public:
  26. CNetMachinePolicies() throw();
  27. ~CNetMachinePolicies() throw();
  28. DECLARE_REGISTRY_RESOURCEID(IDR_NET_GROUP_POLICIES)
  29. BEGIN_COM_MAP(CNetMachinePolicies)
  30. COM_INTERFACE_ENTRY(INetMachinePolicies)
  31. END_COM_MAP()
  32. HRESULT STDMETHODCALLTYPE VerifyPermission(IN const DWORD ulPerm, OUT BOOL* pfPermission);
  33. protected:
  34. CGroupPolicyNetworkLocationAwareness* m_pGroupPolicyNLA;
  35. private:
  36. };