20 | DGetDriverVersionMM
Example This example returns the driver version in
lpDriverVersion
.
#include <mdpcint.h>
{
HDC
hdc;
UWORD
nDisplay = (UWORD) Win2000DisplayNum |
WIN2K_DISPLAY_NUMBER;
DWORD
dwRetCode;
UWORD
DriverVersion;
dwRetCode = DGetDriverVersionMM
(NULL, nDisplay, &DriverVersion);
return dwRetCode;
}
Or, for attached or unattached display 2:
DEVMODE dmMode; HDC hdc;
/* Fill in relevant parts of dmMode */
hdc = CreateDC (“DISPLAY”, “\\\\.\\DISPLAY2”, NULL,
&dmMode);
dwRetCode = DGetDriverVersionMM (hdc,
WIN2K_DISPLAY_NUMBER, &DriverVersion);
See also
DGetLibraryVersion
and the
GetFileVersionInfo
function
of the Microsoft SDK
Содержание Dome DX/PCI
Страница 6: ......