DOC: Incomplete Definition of VideoDebugPrint

Last reviewed: January 8, 1997
Article ID: Q138697
The information in this article applies to:
  • Microsoft Win32 Device Development Kit (DDK) versions 3.5, 3.51

The definition of VideoDebugPrint is incomplete. It should be as follows:

Usage:

   VOID VideoDebugPrint((ULONG Level, PCHAR DebugMessage, ...));

   VideoDebugPrint writes a debug string to the WinDbg KD Command window.

Parameters:

   Level - the debug print level of the message between 0 and 3, with 3
           being the most verbose. This parameter is compared by the
           VideoPort driver to a global debugging variable set in the
           registry. If the parameter "Level" is equal to or less than the
           global debugging variable, the message is printed.

   DebugMessage - The printf formatted string to be printed.

Comments:

   The VideoPort driver looks for the following variable at startup in the
   Registry:

   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 VideoPort's global debug level setting from 0 to 3 for this
        miniport driver.

   If the VideoDebugLevel variable does not exist in the registry, the
   VideoPort driver uses a default value of zero. Thus, when
   VideoDebugPrint is called with a Level parameter greater than zero,
   nothing is printed.

   Only kernel-mode video miniport drivers can call VideoDebugPrint.

   When you run a free build of the VideoPort and video miniport, all
   references to this call are eliminated by the compiler.

   See any of the sample video miniports in the DDK for an example.

This documentation error was fixed in the Windows NT DDK version 4.0.


Additional reference words: 3.50 3.51
KBCategory: kbref kbdocerr kbdocfix
KBSubcategory: ntddkvideo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.