VersionInfoImpl.idl 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /////////////////////////////////////////////////////////////////////////////
  2. // VersionInfoImpl.idl : Property declarations for an interface to be
  3. // implemented by the TCVersionInfoImpl class template (defined in
  4. // VersionInfoImpl.h.
  5. //
  6. // Initialization
  7. [propput, helpstring("Gets/sets the name of the file for which version information is currently loaded, if any.")]
  8. HRESULT FileName([in] BSTR bstrFileName);
  9. [propget]
  10. HRESULT FileName([out, retval] BSTR* pbstrFileName);
  11. // File Version
  12. [propget, helpstring("Gets the File Version as a string formatted as 'AA.BB.CC.DDDD', where A, B, C, and D, are the MS high, MS low, LS high, and LS low words of the version, respectively.")]
  13. HRESULT FileVersionString([out, retval] BSTR* pbstrString);
  14. [propget, helpstring("Gets the high word of the MS (Most Significant) File Version.")]
  15. HRESULT FileVersionMSHigh([out, retval] WORD* pwMSHigh);
  16. [propget, helpstring("Gets the low word of the MS (Most Significant) File Version.")]
  17. HRESULT FileVersionMSLow ([out, retval] WORD* pwMSLow );
  18. [propget, helpstring("Gets the high word of the LS (Least Significant) File Version.")]
  19. HRESULT FileVersionLSHigh([out, retval] WORD* pwLSHigh);
  20. [propget, helpstring("Gets the low word of the LS (Least Significant) File Version.")]
  21. HRESULT FileVersionLSLow ([out, retval] WORD* pwLSLow );
  22. [propget, helpstring("Gets the build number of the File Version. Just a friendlier name for LSLow.")]
  23. HRESULT FileBuildNumber ([out, retval] WORD* pwBuildNumber);
  24. // Product Version
  25. [propget, helpstring("Gets the Product Version as a string formatted as 'AA.BB.CC.DDDD', where A, B, C, and D, are the MS high, MS low, LS high, and LS low words of the version, respectively.")]
  26. HRESULT ProductVersionString([out, retval] BSTR* pbstrString);
  27. [propget, helpstring("Gets the high word of the MS (Most Significant) Product Version.")]
  28. HRESULT ProductVersionMSHigh([out, retval] WORD* pwMSHigh);
  29. [propget, helpstring("Gets the low word of the MS (Most Significant) Product Version.")]
  30. HRESULT ProductVersionMSLow ([out, retval] WORD* pwMSLow );
  31. [propget, helpstring("Gets the high word of the LS (Least Significant) Product Version.")]
  32. HRESULT ProductVersionLSHigh([out, retval] WORD* pwLSHigh);
  33. [propget, helpstring("Gets the low word of the LS (Least Significant) Product Version.")]
  34. HRESULT ProductVersionLSLow ([out, retval] WORD* pwLSLow );
  35. [propget, helpstring("Gets the build number of the Product Version. Just a friendlier name for LSLow.")]
  36. HRESULT ProductBuildNumber ([out, retval] WORD* pwBuildNumber);
  37. // File Flags
  38. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDebug ([out, retval] VARIANT_BOOL* pFlag);
  39. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsInfoInferred ([out, retval] VARIANT_BOOL* pFlag);
  40. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsPatched ([out, retval] VARIANT_BOOL* pFlag);
  41. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsPreRelease ([out, retval] VARIANT_BOOL* pFlag);
  42. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsPrivateBuild ([out, retval] VARIANT_BOOL* pFlag);
  43. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsSpecialBuild ([out, retval] VARIANT_BOOL* pFlag);
  44. // Target Operation Systems
  45. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetUnknown ([out, retval] VARIANT_BOOL* pFlag);
  46. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetDOS ([out, retval] VARIANT_BOOL* pFlag);
  47. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetOS216 ([out, retval] VARIANT_BOOL* pFlag);
  48. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetOS232 ([out, retval] VARIANT_BOOL* pFlag);
  49. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetNT ([out, retval] VARIANT_BOOL* pFlag);
  50. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetBase ([out, retval] VARIANT_BOOL* pFlag);
  51. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetWin16 ([out, retval] VARIANT_BOOL* pFlag);
  52. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetPM16 ([out, retval] VARIANT_BOOL* pFlag);
  53. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetPM32 ([out, retval] VARIANT_BOOL* pFlag);
  54. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetWin32 ([out, retval] VARIANT_BOOL* pFlag);
  55. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetDOSWin16 ([out, retval] VARIANT_BOOL* pFlag);
  56. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetDOSWin32 ([out, retval] VARIANT_BOOL* pFlag);
  57. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetOS216PM16 ([out, retval] VARIANT_BOOL* pFlag);
  58. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetOS232PM32 ([out, retval] VARIANT_BOOL* pFlag);
  59. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsTargetNTWin32 ([out, retval] VARIANT_BOOL* pFlag);
  60. // File Types
  61. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsApp ([out, retval] VARIANT_BOOL* pFlag);
  62. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDll ([out, retval] VARIANT_BOOL* pFlag);
  63. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriver ([out, retval] VARIANT_BOOL* pFlag);
  64. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsFont ([out, retval] VARIANT_BOOL* pFlag);
  65. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsVxd ([out, retval] VARIANT_BOOL* pFlag);
  66. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsStaticLib ([out, retval] VARIANT_BOOL* pFlag);
  67. // Driver Types
  68. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverUnknown ([out, retval] VARIANT_BOOL* pFlag);
  69. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverPrinter ([out, retval] VARIANT_BOOL* pFlag);
  70. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverKeyboard ([out, retval] VARIANT_BOOL* pFlag);
  71. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverLanguage ([out, retval] VARIANT_BOOL* pFlag);
  72. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverDisplay ([out, retval] VARIANT_BOOL* pFlag);
  73. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverMouse ([out, retval] VARIANT_BOOL* pFlag);
  74. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverNetwork ([out, retval] VARIANT_BOOL* pFlag);
  75. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverSystem ([out, retval] VARIANT_BOOL* pFlag);
  76. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverInstallable([out, retval] VARIANT_BOOL* pFlag);
  77. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverSound ([out, retval] VARIANT_BOOL* pFlag);
  78. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverComm ([out, retval] VARIANT_BOOL* pFlag);
  79. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsDriverInputMethod([out, retval] VARIANT_BOOL* pFlag);
  80. // Font Types
  81. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsFontRaster ([out, retval] VARIANT_BOOL* pFlag);
  82. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsFontVector ([out, retval] VARIANT_BOOL* pFlag);
  83. [propget, helpstring("Tests the corresponding bit.")] HRESULT IsFontTrueType ([out, retval] VARIANT_BOOL* pFlag);
  84. // String Values
  85. [propput, helpstring("Gets/sets the language ID for string value lookups. -1 specifies the default (US English).")]
  86. HRESULT LanguageID([in] WORD wLangID);
  87. [propget]
  88. HRESULT LanguageID([out, retval] WORD* pwLangID);
  89. [propput, helpstring("Gets/sets the code page for string value lookups. -1 specifies the defaults (Unicode, Windows Multilingual, Neutral).")]
  90. HRESULT CodePage([in] WORD wCodePage);
  91. [propget]
  92. HRESULT CodePage([out, retval] WORD* pwCodePage);
  93. [propget, helpstring("Tests if the specified named value exists.")]
  94. HRESULT Exists([in] BSTR bstrKey, [out, retval] VARIANT_BOOL* pbExists);
  95. [propget, id(DISPID_VALUE), helpstring("Gets the specified named value, if it exists.")]
  96. HRESULT Value([in] BSTR bstrKey, [out, retval] BSTR* pbstrValue);
  97. // Common String Values
  98. [propget, helpstring("Gets the CompanyName string value, if it exists." )] HRESULT CompanyName ([out, retval] BSTR* pbstrValue);
  99. [propget, helpstring("Gets the FileDescription string value, if it exists." )] HRESULT FileDescription ([out, retval] BSTR* pbstrValue);
  100. [propget, helpstring("Gets the FileVersion string value, if it exists." )] HRESULT FileVersion ([out, retval] BSTR* pbstrValue);
  101. [propget, helpstring("Gets the InternalName string value, if it exists." )] HRESULT InternalName ([out, retval] BSTR* pbstrValue);
  102. [propget, helpstring("Gets the LegalCopyright string value, if it exists." )] HRESULT LegalCopyright ([out, retval] BSTR* pbstrValue);
  103. [propget, helpstring("Gets the OriginalFilename string value, if it exists.")] HRESULT OriginalFilename([out, retval] BSTR* pbstrValue);
  104. [propget, helpstring("Gets the ProductName string value, if it exists." )] HRESULT ProductName ([out, retval] BSTR* pbstrValue);
  105. [propget, helpstring("Gets the ProductVersion string value, if it exists." )] HRESULT ProductVersion ([out, retval] BSTR* pbstrValue);
  106. [propget, helpstring("Gets the SpecialBuild string value, if it exists." )] HRESULT SpecialBuild ([out, retval] BSTR* pbstrValue);
  107. [propget, helpstring("Gets the OLESelfRegister string value, if it exists." )] HRESULT OLESelfRegister ([out, retval] BSTR* pbstrValue);
  108. /////////////////////////////////////////////////////////////////////////////