Skip to content

Latest commit

 

History

History
101 lines (74 loc) · 2.71 KB

nf-shlwapi-makedllverull.md

File metadata and controls

101 lines (74 loc) · 2.71 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shlwapi.MAKEDLLVERULL
MAKEDLLVERULL macro (shlwapi.h)
Used to pack DLL version information into a ULONGLONG value.
MAKEDLLVERULL
MAKEDLLVERULL macro [Windows Shell]
_win32_MAKEDLLVERULL
shell.MAKEDLLVERULL
shlwapi/MAKEDLLVERULL
shell\MAKEDLLVERULL.htm
shell
10c75c91-9642-4877-845e-8c6343721b4f
12/05/2018
MAKEDLLVERULL, MAKEDLLVERULL macro [Windows Shell], _win32_MAKEDLLVERULL, shell.MAKEDLLVERULL, shlwapi/MAKEDLLVERULL
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
Windows
19H1
MAKEDLLVERULL
shlwapi/MAKEDLLVERULL
c++
APIRef
kbSyntax
HeaderDef
Shlwapi.h
MAKEDLLVERULL

MAKEDLLVERULL macro

-description

Used to pack DLL version information into a ULONGLONG value.

-parameters

-param major

The major version number.

-param minor

The minor version number.

-param build

The build number.

-param qfe

The hotfix number that identifies the service pack.

-remarks

This macro is used in conjunction with DllGetVersion to pack version information into a form that can easily be compared to the ullVersion member of a DLLVERSIONINFO2 structure. It is defined as follows.

#define MAKEDLLVERULL(major, minor, build, sp) \
        (((ULONGLONG)(major) << 48) | \
         ((ULONGLONG)(minor) << 32) | \
         ((ULONGLONG)(build) << 16) | \
         ((ULONGLONG)(   sp) <<  0))

For most purposes, you only need to assign values to the major and minor version numbers. The remaining two parameters can be set to zero. The following code fragment illustrates how to use MAKEDLLVERULL to determine whether a DLL is version 4.71 or later. The VersionInfo structure is the DLLVERSIONINFO2 structure returned by DllGetVersion.

if(VersionInfo.ullVersion >= MAKEDLLVERULL(4, 71, 0, 0))
{
    ...
}