升龙物业 老版本 ocx IPO, 加密狗 转值班电话

MiniVersion.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // MiniVersion.h Version 1.1
  2. //
  3. // Author: Hans Dietrich
  4. // hdietrich2@hotmail.com
  5. //
  6. // This software is released into the public domain.
  7. // You are free to use it in any way you like, except
  8. // that you may not sell this source code.
  9. //
  10. // This software is provided "as is" with no expressed
  11. // or implied warranty. I accept no liability for any
  12. // damage or loss of business that this software may cause.
  13. //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. #ifndef MINIVERSION_H
  16. #define MINIVERSION_H
  17. class CMiniVersion
  18. {
  19. // constructors
  20. public:
  21. CMiniVersion(LPCTSTR lpszPath = NULL);
  22. BOOL Init();
  23. void Release();
  24. // operations
  25. public:
  26. // attributes
  27. public:
  28. // fixed info
  29. BOOL GetFileVersion(WORD *pwVersion);
  30. BOOL GetProductVersion(WORD* pwVersion);
  31. BOOL GetFileFlags(DWORD& rdwFlags);
  32. BOOL GetFileOS(DWORD& rdwOS);
  33. BOOL GetFileType(DWORD& rdwType);
  34. BOOL GetFileSubtype(DWORD& rdwType);
  35. // string info
  36. BOOL GetCompanyName(LPTSTR lpszCompanyName, int nSize);
  37. BOOL GetFileDescription(LPTSTR lpszFileDescription, int nSize);
  38. BOOL GetProductName(LPTSTR lpszProductName, int nSize);
  39. // implementation
  40. protected:
  41. BOOL GetFixedInfo(VS_FIXEDFILEINFO& rFixedInfo);
  42. BOOL GetStringInfo(LPCTSTR lpszKey, LPTSTR lpszValue);
  43. BYTE* m_pData;
  44. DWORD m_dwHandle;
  45. WORD m_wFileVersion[4];
  46. WORD m_wProductVersion[4];
  47. DWORD m_dwFileFlags;
  48. DWORD m_dwFileOS;
  49. DWORD m_dwFileType;
  50. DWORD m_dwFileSubtype;
  51. TCHAR m_szPath[MAX_PATH*2];
  52. TCHAR m_szCompanyName[MAX_PATH*2];
  53. TCHAR m_szProductName[MAX_PATH*2];
  54. TCHAR m_szFileDescription[MAX_PATH*2];
  55. };
  56. #endif
  57. ///////////////////////////////////////////////////////////////////////////////