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.

21 lines
841 B

  1. //=--------------------------------------------------------------------------=
  2. // (C) Copyright 1997-1998 Microsoft Corporation. All Rights Reserved.
  3. // TriEdit SDK team
  4. // Author: Yury Polyakovsky
  5. // contact: [email protected]
  6. //=--------------------------------------------------------------------------=
  7. class CRefCount
  8. {
  9. public:
  10. CRefCount() {m_dwRefCount = 1;}
  11. void SetInstalFlag(BOOL flag) {m_fInstall = flag;}
  12. void Change(char *szName, PHKEY phkRef);
  13. BOOL ValueExist(char *sz_RegSubkey, char *sz_RegValue);
  14. void ValueGet(char *sz_RegSubkey, char *sz_ValueName, LPBYTE *p_Value, DWORD *pdwValueSize);
  15. void ValueSet(char *sz_RegSubkey, char *sz_RegValue);
  16. void ValueClear(char *sz_RegSubkey, char *sz_RegValue);
  17. DWORD GetCount() { return m_dwRefCount;}
  18. private:
  19. BOOL m_fInstall;
  20. DWORD m_dwRefCount;
  21. };