ReactOS
0.4.16-dev-303-g11d5cb8
Functions
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
51
FormatMessageW
(
52
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
),
53
NULL
,
54
ErrorCode
,
55
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
56
(
LPWSTR
)& lpMsgBuf,
57
0,
58
NULL
59
);
60
wprintf
(
61
L
"%s: %s\n"
,
62
Message
,
63
lpMsgBuf
64
);
65
LocalFree
( lpMsgBuf );
66
}
NULL
#define NULL
Definition:
types.h:112
FormatMessageW
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition:
format_msg.c:583
Message
static const WCHAR Message[]
Definition:
register.c:74
LocalFree
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition:
heapmem.c:1594
ErrorCode
_In_ NDIS_ERROR_CODE ErrorCode
Definition:
ndis.h:4436
L
#define L(x)
Definition:
ntvdm.h:50
LANG_NEUTRAL
#define LANG_NEUTRAL
Definition:
nls.h:22
MAKELANGID
#define MAKELANGID(p, s)
Definition:
nls.h:15
SUBLANG_DEFAULT
#define SUBLANG_DEFAULT
Definition:
nls.h:168
wprintf
#define wprintf(...)
Definition:
whoami.c:18
FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_FROM_SYSTEM
Definition:
winbase.h:449
FORMAT_MESSAGE_ALLOCATE_BUFFER
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition:
winbase.h:445
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
modules
rosapps
applications
sysutils
win32err.h
Generated on Sun Dec 1 2024 06:25:01 for ReactOS by
1.9.6