次の方法で共有


NKDbgPrintfW (Compact 2013)

3/28/2014

This function prints a string to the debug output stream. The function is called by the DEBUGMSG, RETAILMSG, and ERRORMSG macros when the macro requires output support.

Syntax

void WINAPIV NKDbgPrintfW(
  LPCWSTR lpszFmt,...
);

Parameters

  • lpszFmt
    Uses wprintf, a printf-style format string that accepts Unicode characters.

Remarks

NKDbgPrintfW supports a variable number of arguments.

WARNING: The message output must be smaller than 256 bytes, or 128 Unicode characters.

Note

Do not log protected information to NKDbgPrintfW because a malicious user could compromise the system and collect this information.

Note

Do not take a pointer from a caller and write it to NKDbgPrintfW without first using access-checking APIs such as CeOpenCallerBuffer, which are designed to prevent callers from reading system data.

Requirements

Header

dbgapi.h

Library

Nkstub.lib

See Also

Reference

Debugging Functions
DEBUGMSG
RETAILMSG
ERRORMSG