Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 2.17 KB

nf-wiautil-wias_trace.md

File metadata and controls

76 lines (59 loc) · 2.17 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:wiautil.WIAS_TRACE
WIAS_TRACE macro (wiautil.h)
Learn how the WIAS_TRACE macro writes a diagnostic message to the Wiatrace.log file.
image\wias_trace.htm
image
05/03/2018
WIAS_TRACE macro
IWiaLog_c755ea6c-c312-4b15-be83-a437358b83a9.xml, WIAS_TRACE, WIAS_TRACE macro [Imaging Devices], image.wias_trace, wiamdef/WIAS_TRACE
wiautil.h
Wiautil.h
Desktop
Windows
WIAS_TRACE
wiautil/WIAS_TRACE
APIRef
kbSyntax
HeaderDef
wiamdef.h
WIAS_TRACE

WIAS_TRACE macro (wiautil.h)

-description

The WIAS_TRACE macro writes a diagnostic message to theWiatrace.log file.

-parameters

-param x

  • HInst - Handle to the DLL (driver).

  • format_string, ... - Specifies a variable argument list, which starts with an ANSI format string that describes the message and any format identifiers. The ellipsis (...) specifies a variable number of arguments that need to be output. The error text should be prefixed with the full name of the method or function and generate the message in the format of "class::method, error-text".

-remarks

To enable tracing in free builds, drivers must define the WIA_DEBUG macro by adding #define WIA_DEBUG before including any of the WIA headers. Tracing is enabled by default in checked and debug builds of the operating system.

The following is an example of how the macro would be used:

WIAS_TRACE((g_hInst,"WIA storage path = %ws",m_wszStoragePath));

This code snippet was taken fromWiadriver.cpp, which is included with the WDK.

-see-also

WIAS_ASSERT

WIAS_ERROR

WIAS_HRESULT