ReactOS  0.4.14-dev-1034-g1e60116
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,
54  ErrorCode,
56  (LPWSTR)& lpMsgBuf,
57  0,
58  NULL
59  );
60  wprintf(
61  L"%s: %s\n",
62  Message,
63  lpMsgBuf
64  );
65  LocalFree( lpMsgBuf );
66 }
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define LANG_NEUTRAL
Definition: nls.h:22
#define SUBLANG_DEFAULT
Definition: nls.h:168
#define wprintf(...)
Definition: whoami.c:18
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition: format_msg.c:583
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
smooth NULL
Definition: ftsmooth.c:416
#define FORMAT_MESSAGE_FROM_SYSTEM
Definition: winbase.h:404
CHAR Message[80]
Definition: alive.c:5
static const WCHAR L[]
Definition: oid.c:1250
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
#define MAKELANGID(p, s)
Definition: nls.h:15
WCHAR * LPWSTR
Definition: xmlstorage.h:184