VideoDebugPrint

VOID VideoDebugPrint(

ULONG DebugPrintLevel,
PCHAR DebugMessage,
...
);

VideoDebugPrint prints the specified debug message to the kernel debugger.

Parameters

DebugPrintLevel

Specifies the level of debug messages to be printed to. This parameter can be 0 through 3, where 3 is the most verbose. The video port compares this parameter to the global debugging variable set in the registry. If DebugPrintLevel is equal to or less than the global debugging variable, the message is printed.

DebugMessage

Points to a string containing the debug message to be printed.

Comments

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.

See Also

VideoPortLogError