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.

41 lines
992 B

  1. // header for the metadata Service object
  2. // metabase paths
  3. #define SZ_META_BASE "/LM/W3Svc"
  4. #define SZ_META_KEYBASE "/SSLKeys"
  5. //--------------------------------------------------------
  6. class CMDKeyService : public CService
  7. {
  8. public:
  9. CMDKeyService();
  10. ~CMDKeyService();
  11. // set the machine name into place
  12. void SetMachineName( WCHAR* pszw );
  13. // store and load the keys - all the keys
  14. virtual void LoadKeys( CMachine* pMachine );
  15. virtual BOOL FCommitChangesNow();
  16. // create a new key.
  17. virtual CKey* PNewKey() {return (CKey*)new CMDKey(this);}
  18. // wide machine name
  19. WCHAR* m_pszwMachineName;
  20. // helpful utilities for scanning the
  21. // keys contained by a service object
  22. CMDKey* GetFirstMDKey()
  23. { return (CMDKey*)GetFirstChild(); }
  24. CMDKey* GetNextMDKey( CMDKey* pKey )
  25. { return (CMDKey*)GetNextChild(pKey); }
  26. // test to see if a key on the service has a particular binding
  27. BOOL FIsBindingInUse( CString szBinding );
  28. private:
  29. };