home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets (4th Edition) / Windows95Secrets4thEdition.iso / tools / installr / freeman / version.h_ / version
Encoding:
Text File  |  1995-06-14  |  1.1 KB  |  38 lines

  1. #define __VERSION_H
  2.  
  3.  
  4. class abspath;
  5.  
  6. class varpath;
  7.  
  8.  
  9. class version                                        /* version info of a file */
  10. {
  11.    public:
  12.  
  13.    WORD lang;                                                   /* language id */
  14.    WORD cset;                                                 /* character set */
  15.    DWORD os;                                                             /* os */
  16.    DWORD prmtype;                              /* primary type (exe, dll, etc) */
  17.    DWORD subtype;                         /* sub type (display, keyboard, etc) */
  18.    DWORD verhi32;                                     /* high 32bit version no */
  19.    DWORD verlo32;                                      /* low 32bit version no */
  20.  
  21.    char *getprmtypename()
  22.    {
  23.       return getprmtypename(prmtype);
  24.    }
  25.    char *getsubtypename()
  26.    {
  27.       return getprmtypename(subtype);
  28.    }
  29.  
  30.    int getversion(abspath &path);
  31.  
  32.    static int compare(HWND owner, abspath &srcpath, varpath &dstpath);
  33.    static char *getprmtypename(DWORD prmtype);
  34.    static char *getsubtypename(DWORD subtype);
  35. };
  36.  
  37.  
  38.