Windows Driver Kit: Display Devices
Loading an OpenGL Installable Client Driver
The OpenGL runtime accesses the registry to determine which OpenGL installable client driver (ICD) to load. To load the OpenGL ICD, the OpenGL runtime:
To locate the name of the OpenGL ICD, D3DKMTQueryAdapterInfo searches the registry in the following key:
HKLM/System/CurrentControlSet/Control/Class/{Adapter GUID}/0000/
This key also contains the names of the Microsoft Direct3D user-mode display drivers. This key contains four registry entries for 32-bit Windows Vista display drivers that are used on 32-bit Windows Vista and four entries for 32-bit Windows Vista display drivers that are used on 64-bit Windows Vista. The following entries are for 32-bit Windows Vista display drivers that are used on 32-bit Windows Vista:
- UserModeDriverName
- REG_SZ
The name of the Direct3D user-mode display driver, which is required for the operation of a Direct3D rendering device regardless of whether the operating system supports an OpenGL ICD.
- OpenGLDriverName
- REG_SZ
The name of the OpenGL ICD. For example, if the OpenGL ICD is Mydriver.dll, the value of this entry is Mydriver.dll.
- OpenGLVersion
- REG_DWORD
The version number of the OpenGL ICD that the OpenGL runtime uses to validate the version of the OpenGL ICD.
- OpenGLFlags
- REG_DWORD
A flag bitmask. Currently, bit 0 (0x00000001) is set for compatibility. When bit 1 (0x00000002) is set, the OpenGL runtime does not call the ICD's finish function before the runtime calls the ICD's swap-buffers function.
The following entries are for 32-bit Windows Vista display drivers that are used on 64-bit Windows Vista:
- UserModeDriverNameWow
- REG_SZ
The name of the 32-bit Microsoft Direct3D user-mode display driver for 64-bit Windows Vista.
- OpenGLDriverNameWow
- REG_SZ
The name of the 32-bit OpenGL ICD for 64-bit Windows Vista.
- OpenGLVersionWow
- REG_DWORD
The version number of the 32-bit OpenGL ICD for 64-bit Windows Vista.
- OpenGLFlagsWow
- REG_DWORD
A flag bitmask of the 32-bit OpenGL ICD for 64-bit Windows Vista.