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.

28 lines
607 B

  1. // File: pfnver.h
  2. #ifndef _PFNVER_H_
  3. #define _PFNVER_H_
  4. // from version.dll
  5. typedef DWORD (WINAPI * PFN_GETVERINFOSIZE) (LPTSTR, LPDWORD);
  6. typedef BOOL (WINAPI * PFN_GETVERINFO) (LPTSTR, DWORD, DWORD, LPVOID);
  7. typedef BOOL (WINAPI * PFN_VERQUERYVAL) (const LPVOID, LPTSTR, LPVOID *, PUINT);
  8. class DLLVER
  9. {
  10. private:
  11. static HINSTANCE m_hInstance;
  12. protected:
  13. DLLVER() {};
  14. ~DLLVER() {};
  15. public:
  16. static HRESULT Init(void);
  17. static PFN_GETVERINFOSIZE GetFileVersionInfoSize;
  18. static PFN_GETVERINFO GetFileVersionInfo;
  19. static PFN_VERQUERYVAL VerQueryValue;
  20. };
  21. #endif /* _PFNVER_H_ */