win95-initial-port-20010430
[openafs.git] / src / WINNT / win9xpanel / modver.h
1 /* Copyright 2000, International Business Machines Corporation and others.
2         All Rights Reserved.
3  
4         This software has been released under the terms of the IBM Public
5         License.  For details, see the LICENSE file in the top-level source
6         directory or online at http://www.openafs.org/dl/license10.html
7 */
8 #ifndef __MODVER_H
9 #define __MODVER_H
10
11 #include <shlwapi.h>                    //win95/98/2000 sdk
12 #define PACKVERSION(major,minor) MAKELONG(minor,major)
13
14 // tell linker to link with version.lib for VerQueryValue, etc.
15 #pragma comment(linker, "/defaultlib:version.lib")
16
17 // CModuleVersion version info about a module.
18 //
19
20 class CModuleVersion {
21 public:
22    CModuleVersion();
23    virtual ~CModuleVersion();
24    BOOL     GetFileVersionInfo(LPCTSTR modulename,DWORD &vernum);
25    BOOL DllGetVersion(LPCTSTR modulename, DLLVERSIONINFO& dvi,DWORD &vernum);
26 };
27
28 #endif
29