ReactOS 0.4.15-dev-7934-g1dc8d80
win32err.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

VOID PrintWin32Error (PWCHAR Message, DWORD ErrorCode)
 

Function Documentation

◆ PrintWin32Error()

VOID PrintWin32Error ( PWCHAR  Message,
DWORD  ErrorCode 
)

Definition at line 44 of file win32err.c.

48{
49 LPWSTR lpMsgBuf;
50
53 NULL,
56 (LPWSTR)& lpMsgBuf,
57 0,
58 NULL
59 );
60 wprintf(
61 L"%s: %s\n",
62 Message,
63 lpMsgBuf
64 );
65 LocalFree( lpMsgBuf );
66}
#define NULL
Definition: types.h:112
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition: format_msg.c:583
static const WCHAR Message[]
Definition: register.c:74
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1594
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define L(x)
Definition: ntvdm.h:50
#define LANG_NEUTRAL
Definition: nls.h:22
#define MAKELANGID(p, s)
Definition: nls.h:15
#define SUBLANG_DEFAULT
Definition: nls.h:168
#define wprintf(...)
Definition: whoami.c:18
#define FORMAT_MESSAGE_FROM_SYSTEM
Definition: winbase.h:423
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:419
WCHAR * LPWSTR
Definition: xmlstorage.h:184