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.

33 lines
1.0 KiB

  1. //
  2. // MODULE: VersionInfo.h
  3. // PURPOSE This module reads version info from the resource file.
  4. // PROJECT: Generic Troubleshooter DLL for Microsoft AnswerPoint
  5. //
  6. // COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
  7. //
  8. // AUTHOR: Oleg Kalosha
  9. //
  10. // ORIGINAL DATE:
  11. //
  12. // NOTES:
  13. // 1. Took it from Argon Project.
  14. //
  15. // Version Date By Comments
  16. //--------------------------------------------------------------------
  17. // V3.0 OK
  18. #include<windows.h>
  19. #include "apgtsstr.h"
  20. // FindStr: Does a strstr but works on files that have embedded null characters.
  21. LPCWSTR FindStr(LPCWSTR wszString, LPCWSTR wszCharSet, const DWORD dwStringLen);
  22. // GetVersionInfo: Reads the version info.
  23. // Input: hInst - The handle returned from AfxGetResourceHandle()
  24. // or the handle that was passed to DllMain.
  25. // wszStrName - The name of the resource that is desired.
  26. // GetVersionInfo(g_hInst, L"FileVersion") Returns the FileVersion.
  27. // NULL will be returned if the function fails.
  28. LPCWSTR GetVersionInfo(HINSTANCE hInst, LPWSTR wszStrName);