uLib  User mode C/C++ extended API library for Win32 programmers.
VerInfo.cpp File Reference
#include <uLib/VerInfo.h>
#include <uLib/DlgPlate.h>
#include <uLib/UtilFunc.h>
#include <uLib/StrFunc.h>
#include <uLib/Debug.h>

Go to the source code of this file.

Classes

struct  PVIH
 

Macros

#define _VNAME_FMT   L"\\StringFileInfo\\%S\\%S"
 
#define _VNAME_FMT   L"\\StringFileInfo\\%S\\%S"
 
#define CB_CWSTR(s)   (BYTE)dwPad( sizeof(s)-sizeof(WCHAR) )
 
#define WS_VISICHILD   (WS_CHILD| WS_VISIBLE)
 
#define WS_SCROLL   (WS_VSCROLL| WS_HSCROLL)
 

Functions

DWORD_PTR dwPad (DWORD_PTR X)
 
PBYTE dwAlign (PBYTE Ptr)
 
PVOID GetVersionResource (HMODULE hMod, CSTR ResId, PUINT pSize)
 
PVOID LoadVersionInfo (CSTR FName, PDWORD pSize)
 
PVOID FreeVersionInfo (PVOID vInfo)
 
CSTR GetVersionStr (PVOID VerBuf, CSTR BlockId, CSTR Name)
 
UINT GetVersionString (IN PVOID VerBuf, IN CSTR BlockId, IN CSTR Name, OUT TSTR Buffer, IN UINT BufLen)
 Get a specific version string. More...
 
CSTR GetFixedVersionStr (PVOID vInfo)
 
bool GetVerTranslations (PVOID vInfo, PVXLT *ppXlt, PUINT pCount)
 
CSTR GetVerTranslationStr (PVOID vInfo)
 
UINT EnumVersionStrings (PVOID vInfo, PFnEnumVerStr UserFunc, PVOID UserData)
 
DIALOGPROC _AboutProc (HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
 
int AboutVerBox (HWND hOwner, LPCWSTR Caption, CSTR FName)
 

Class Documentation

◆ VIH

struct VIH

Definition at line 224 of file VerInfo.cpp.

Class Members
WORD Length
WORD ValueLen
WORD Type
WCHAR Name[1]

Macro Definition Documentation

◆ _VNAME_FMT [1/2]

#define _VNAME_FMT   L"\\StringFileInfo\\%S\\%S"

◆ _VNAME_FMT [2/2]

#define _VNAME_FMT   L"\\StringFileInfo\\%S\\%S"

◆ CB_CWSTR

#define CB_CWSTR (   s)    (BYTE)dwPad( sizeof(s)-sizeof(WCHAR) )

Definition at line 242 of file VerInfo.cpp.

◆ WS_VISICHILD

#define WS_VISICHILD   (WS_CHILD| WS_VISIBLE)

Definition at line 318 of file VerInfo.cpp.

◆ WS_SCROLL

#define WS_SCROLL   (WS_VSCROLL| WS_HSCROLL)

Definition at line 321 of file VerInfo.cpp.

Function Documentation

◆ dwPad()

DWORD_PTR dwPad ( DWORD_PTR  X)

◆ dwAlign()

PBYTE dwAlign ( PBYTE  Ptr)

◆ GetVersionStr()

CSTR GetVersionStr ( PVOID  VerBuf,
CSTR  BlockId,
CSTR  Name 
)

Definition at line 96 of file VerInfo.cpp.

◆ GetFixedVersionStr()

CSTR GetFixedVersionStr ( PVOID  vInfo)

Definition at line 165 of file VerInfo.cpp.

◆ GetVerTranslations()

bool GetVerTranslations ( PVOID  vInfo,
PVXLT *  ppXlt,
PUINT  pCount 
)

Definition at line 182 of file VerInfo.cpp.

◆ GetVerTranslationStr()

CSTR GetVerTranslationStr ( PVOID  vInfo)

Definition at line 194 of file VerInfo.cpp.

◆ _AboutProc()

DIALOGPROC _AboutProc ( HWND  hdlg,
UINT  msg,
WPARAM  wp,
LPARAM  lp 
)

Definition at line 394 of file VerInfo.cpp.