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.

36 lines
992 B

  1. #ifndef _titleinfo_h_
  2. #define _titleinfo_h_
  3. #include "windows.h"
  4. #include "stdio.h"
  5. #include "fs.h"
  6. #include "util.h"
  7. #include "subfile.h"
  8. class CTitleInfo
  9. {
  10. public:
  11. CTitleInfo();
  12. ~CTitleInfo();
  13. HRESULT GetTopicName(DWORD dwTopic, WCHAR* pwszTitle, int cch, UINT cp);
  14. HRESULT GetTopicURL(DWORD dwTopic, CHAR* pwszURL, int cch);
  15. HRESULT GetLocationName(WCHAR *pwszLocationName, int cch, UINT cp);
  16. BOOL OpenTitle(WCHAR *pwcTitlePath);
  17. private:
  18. CTitleInformation *m_pTitleInfo;
  19. char m_szTitlePath[_MAX_PATH];
  20. const CHAR* GetString(DWORD dwOffset);
  21. HRESULT GetString( DWORD dwOffset, CHAR* psz, int cb);
  22. HRESULT GetString( DWORD dwOffset, WCHAR* pwsz, int cch, UINT cp );
  23. HRESULT GetTopicData(DWORD dwTopic, TOC_TOPIC * pTopicData);
  24. BOOL m_bOpen;
  25. CPagedSubfile* m_pTopics;
  26. CPagedSubfile* m_pStrTbl;
  27. CPagedSubfile* m_pUrlTbl;
  28. CPagedSubfile* m_pUrlStrings;
  29. public:
  30. CFileSystem* m_pCFileSystem;
  31. };
  32. #endif