#include "precomp.h"
#include <stdio.h>
Go to the source code of this file.
◆ DisplayError()
Definition at line 110 of file misc.c.
111{
115}
void ConPrintf(FILE *fp, LPCWSTR psz,...)
INT ConMsgPuts(IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId)
#define LANG_USER_DEFAULT
#define FORMAT_MESSAGE_FROM_SYSTEM
◆ ParseReasonCode()
Definition at line 55 of file misc.c.
56{
58 int majorCode = 0;
59 int minorCode = 0;
61 size_t codeSize;
62
63
65 {
67 }
68 else
69 {
70
72
73
74 if ((
code[0] ==
L':') || (
code[codeSize] ==
L':'))
75 {
77 }
78
79
80 if ((codeSize < 5) || (codeSize > 7))
81 {
83 }
84
85
86
87
88 if ((majorCode > 7 ) || (majorCode < 0) ||
89 (minorCode > 20) || (minorCode < 0))
90 {
92 }
93
94
96 {
97 if ((majorCode == reasonptr->
major) &&
98 (minorCode == reasonptr->
minor) &&
100 {
101 return reasonptr->
flag;
102 }
103 }
104 }
105
107}
const DWORD defaultReason
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Referenced by ParseArguments().
◆ defaultReason
const DWORD defaultReason = SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER |
◆ shutdownReason