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.

56 lines
1.4 KiB

  1. //////////////////////////////////////////////////////////////////////
  2. //
  3. // Registry.h: Registry �N���X�̃C���^�[�t�F�C�X
  4. //
  5. //////////////////////////////////////////////////////////////////////
  6. #if !defined(AFX_REGISTRY_H__78045FC5_02E1_11D2_8D1E_0000C06C2A54__INCLUDED_)
  7. #define AFX_REGISTRY_H__78045FC5_02E1_11D2_8D1E_0000C06C2A54__INCLUDED_
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11. struct CmdExeFunctions {
  12. DWORD dwFilenameCompletion;
  13. };
  14. class CConRegistry
  15. {
  16. public:
  17. CConRegistry();
  18. virtual ~CConRegistry();
  19. public:
  20. static const CString m_err;
  21. public:
  22. bool ReadCustom(ExtKeyDefBuf*);
  23. bool WriteCustom(const ExtKeyDefBuf*);
  24. DWORD ReadMode();
  25. bool WriteMode(DWORD);
  26. CString ReadWordDelim();
  27. bool WriteWordDelim(const CString&);
  28. DWORD ReadTrimLeadingZeros();
  29. bool WriteTrimLeadingZeros(DWORD);
  30. bool ReadCmdFunctions(CmdExeFunctions*);
  31. bool WriteCmdFunctions(const CmdExeFunctions*);
  32. protected:
  33. void WriteError(LPCTSTR subkey);
  34. CString ReadString(LPCTSTR subkey);
  35. bool WriteString(LPCTSTR subkey, const CString& str);
  36. DWORD ReadDWORD(LPCTSTR subkey);
  37. bool WriteDWORD(LPCTSTR subkey, DWORD value);
  38. protected:
  39. HKEY m_hkey;
  40. HKEY m_cmdKey;
  41. };
  42. #endif // !defined(AFX_REGISTRY_H__78045FC5_02E1_11D2_8D1E_0000C06C2A54__INCLUDED_)