VP_STATUS VideoPortGetRegistryParameters(
PVOID HwDeviceExtension, | |
PWSTR ParameterName, | |
UCHAR IsParameterFileName, | |
PMINIPORT_GET_REGISTRY_ROUTINE CallbackRoutine, | |
PVOID Context | |
); |
VideoPortGetRegistryParameters retrieves adapter-specific configuration information under the ..\CurrentControlSet\Services\DriverName\DeviceNumber key in the registry. VideoPortGetRegistryParameters automatically searches for the specified value entry name in the key for the miniport’s current device.
VideoPortGetRegistryParameters returns NO_ERROR if it successfully collected the requested information and called the miniport’s HwVidQueryNamedValueCallback function.
VideoPortGetRegistryParameters can be called only from a miniport’s HwVidFindAdapter or HwVidInitialize function.
The registry key from which VideoPortGetRegistryParameters retrieves configuration information cannot contain any information about the corresponding display driver, because miniport HwVidFindAdapter functions execute before any user-mode display driver is loaded.
Miniports should not query configuration information stored in the DefaultSettings entries, which are not guaranteed to be defined in future versions of Windows NT.
HwVidFindAdapter, HwVidInitialize, HwVidQueryDeviceCallback, HwVidQueryNamedValueCallback, VIDEO_PORT_CONFIG_INFO, VideoPortGetDeviceData