Windows Dev Center

PxeTrace function

Adds a trace entry to the PXE log.

Syntax


DWORD PXEAPI PxeTrace(
  _In_ HANDLE       hProvider,
  _In_ PXE_SEVERITY Severity,
  _In_ LPCWSTR      pszFormat,
                    ...
);

Parameters

hProvider [in]

HANDLE passed to the PxeProviderInitialize function.

Severity [in]

Severity of trace entry.

ValueMeaning
PXE_TRACE_VERBOSE
0x00010000

The trace entry is verbose and would primarily be useful when debugging.

PXE_TRACE_INFO
0x00020000

The trace entry is informational, but does not indicate a warning condition.

PXE_TRACE_WARNING
0x00040000

The trace message indicates a warning.

PXE_TRACE_ERROR
0x00080000

The trace message indicates an error condition.

PXE_TRACE_FATAL
0x00100000

The trace message indicates a fatal error condition.

 

pszFormat [in]

Address of a buffer that contains a printf-style format string.

...

Optional arguments. The number and type of argument parameters depend on the format control string pointed to by the pszFormat parameter.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP2 [desktop apps only]

Header

WdsPxe.h

Library

WdsPxe.lib

DLL

WdsPxe.dll

See also

Windows Deployment Services Server Functions
PxeProviderInitialize

 

 

Community Additions

ADD
Show:
© 2015 Microsoft