VOID VideoDebugPrint(
ULONG DebugPrintLevel, | |
PCHAR DebugMessage, | |
... | |
); |
VideoDebugPrint prints the specified debug message to the kernel debugger.
The video port driver checks the registry for the following entry at startup:
\\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\DriverName\DeviceN\VideoDebugLevel:REG_DWORD:n
where:
DriverName is the video miniport’s installed name;
DeviceN is the installed device number (for example, Device0);
n is the video port's global debug level setting, from 0 to 3, for this miniport driver.
If the VideoDebugLevel entry doesn’t exist in the registry, the video port driver uses a default value of 0, meaning that no debug statements will be printed.
The compiler eliminates references to VideoDebugPrint for free builds of the video port and video miniport.
Miniport drivers must not call VideoPortDebugPrint.