ReactOS 0.4.15-dev-7928-g68a8619
FsRtlLegal.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
4 * PURPOSE: Test for FsRtlIsFatDbcsLegal/FsRtlIsHpfsDbcsLegal
5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6 * Pierre Schweitzer <pierre@reactos.org>
7 */
8
9#include <kmt_test.h>
10
11static struct
12{
19} NamesTests[] =
20{
21 { "", FALSE, FALSE },
22 { "a", TRUE, TRUE, FALSE, FALSE, FALSE },
23 { "A", TRUE, TRUE, FALSE, FALSE, FALSE },
24 { ".", TRUE, TRUE, TRUE, FALSE, FALSE },
25 { "..", TRUE, TRUE, TRUE, FALSE, FALSE },
26 { "...", FALSE, FALSE },
27 { "A ", FALSE, FALSE },
28 { " ", FALSE, FALSE },
29 { " A", TRUE, TRUE, FALSE, FALSE, FALSE },
30 { " A ", FALSE, FALSE },
31 { "A.", FALSE, FALSE },
32 { ".A", FALSE, TRUE, FALSE, FALSE, FALSE },
33 { ".A.", FALSE, FALSE },
34 { "*", TRUE, TRUE, TRUE, FALSE, FALSE },
35 { "?", TRUE, TRUE, TRUE, FALSE, FALSE },
36 { "????????.???", TRUE, TRUE, TRUE, FALSE, FALSE },
37 { "????????????", TRUE, TRUE, TRUE, FALSE, FALSE },
38 { "????????.????", TRUE, TRUE, TRUE, FALSE, FALSE },
39 { "??????????????????", TRUE, TRUE, TRUE, FALSE, FALSE },
40 { "?*?*?*?*?*?*?*?*?*", TRUE, TRUE, TRUE, FALSE, FALSE },
41 { "ABCDEFGHIJKLMNOPQ*", TRUE, TRUE, TRUE, FALSE, FALSE },
42 { "ABCDEFGHI\\*", FALSE, TRUE, TRUE, TRUE, FALSE },
43 { "*\\ABCDEFGHI", FALSE, TRUE, TRUE, TRUE, FALSE },
44 { "?.?.?", TRUE, TRUE, TRUE, FALSE, FALSE },
45 { "?..?", TRUE, TRUE, TRUE, FALSE, FALSE },
46 { "? ", TRUE, FALSE, TRUE, FALSE, FALSE },
47 { " ?", TRUE, TRUE, TRUE, FALSE, FALSE },
48 { "?.", TRUE, FALSE, TRUE, FALSE, FALSE },
49 { ".?", TRUE, TRUE, TRUE, FALSE, FALSE },
50 { "? .?", TRUE, TRUE, TRUE, FALSE, FALSE },
51 { "A?A", TRUE, TRUE, TRUE, FALSE, FALSE },
52 { "A*A", TRUE, TRUE, TRUE, FALSE, FALSE },
53 { "A<A", TRUE, TRUE, TRUE, FALSE, FALSE },
54 { "A>A", TRUE, TRUE, TRUE, FALSE, FALSE },
55 { "A\"A", TRUE, TRUE, TRUE, FALSE, FALSE },
56 { "A'A", TRUE, TRUE, FALSE, FALSE, FALSE },
57 { "A:A", FALSE, FALSE },
58 { "A\x1fG", FALSE, FALSE },
59 { "A\x01G", FALSE, FALSE },
60 { "A\x0aG", FALSE, FALSE },
61 { "A\x0dG", FALSE, FALSE },
62 { "\x7f", TRUE, TRUE, FALSE, FALSE, FALSE },
63 /* FIXME: these two are probably locale-specific */
64 { "\x80", TRUE, TRUE, FALSE, FALSE, FALSE },
65 { "\xff", TRUE, TRUE, FALSE, FALSE, FALSE },
66 { "ABCDEFGH.IJK", TRUE, TRUE, FALSE, FALSE, FALSE },
67 { "ABCDEFGHX.IJK", FALSE, TRUE, FALSE, FALSE, FALSE },
68 { "ABCDEFGHX.IJ", FALSE, TRUE, FALSE, FALSE, FALSE },
69 { "ABCDEFGH.IJKX", FALSE, TRUE, FALSE, FALSE, FALSE },
70 { "ABCDEFG.IJKX", FALSE, TRUE, FALSE, FALSE, FALSE },
71 { "ABCDEFGH", TRUE, TRUE, FALSE, FALSE, FALSE },
72 { "ABCDEFGHX", FALSE, TRUE, FALSE, FALSE, FALSE },
73 { "A.B", TRUE, TRUE, FALSE, FALSE, FALSE },
74 { "A..B", FALSE, TRUE, FALSE, FALSE, FALSE },
75 { "A.B.", FALSE, FALSE },
76 { "A.B.C", FALSE, TRUE, FALSE, FALSE, FALSE },
77 { "A .B", FALSE, TRUE, FALSE, FALSE, FALSE },
78 { " A .B", FALSE, TRUE, FALSE, FALSE, FALSE },
79 { "A. B", TRUE, TRUE, FALSE, FALSE, FALSE },
80 { "A. B ", FALSE, FALSE },
81 { "A. B ", FALSE, FALSE },
82 { " A . B", FALSE, TRUE, FALSE, FALSE, FALSE },
83 { " A . B ", FALSE, FALSE },
84 { "\\ABCDEFGH.IJK", TRUE, TRUE, FALSE, FALSE, TRUE },
85 { "ABCDEFGH.IJK\\", TRUE, TRUE, FALSE, TRUE, FALSE },
86 { "\\ABCDEFGH.IJK\\", TRUE, TRUE, FALSE, TRUE, TRUE },
87 { "\\", TRUE, TRUE, FALSE, FALSE, TRUE },
88 { "\\\\", FALSE, FALSE },
89 { "\\\\B", FALSE, FALSE },
90 { "A\\", TRUE, TRUE, FALSE, TRUE, FALSE },
91 { "A\\B", TRUE, TRUE, FALSE, TRUE, FALSE },
92 { "A\\\\", FALSE, FALSE },
93 { "A\\\\B", FALSE, FALSE },
94 /* We can exceed MAX_PATH (260) characters */
95 { "0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7BCDEF.HI\\8BCDEF.HI\\9BCDEF.HI\\0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7BCDEF.HI\\8BCDEF.HI\\9BCDEF.HI\\0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI", TRUE, TRUE, FALSE, TRUE, FALSE },
96 { "0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7BCDEF.HI\\8BCDEF.HI\\9BCDEF.HI\\0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7BCDEF.HI\\8BCDEF.HI\\9BCDEF.HI\\0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\", TRUE, TRUE, FALSE, TRUE, FALSE },
97 { "0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7BCDEF.HI\\8BCDEF.HI\\9BCDEF.HI\\0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7BCDEF.HI\\8BCDEF.HI\\9BCDEF.HI\\0BCDEF.HI\\1BCDEF.HI\\2BCDEF.HI\\3BCDEF.HI\\4BCDEF.HI\\5BCDEF.HI\\6BCDEF.HI\\7", TRUE, TRUE, FALSE, TRUE, FALSE },
98 /* Max component length for HPFS is 255 characters */
99 { "ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEFGHI6ABCDEFGHI7ABCDEFGHI8ABCDEFGHI9ABCDEFGHI0ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEFGHI6ABCDEFGHI7ABCDEFGHI8ABCDEFGHI9ABCDEFGHI0ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDE", FALSE, TRUE, FALSE, FALSE, FALSE },
100 { "ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEFGHI6ABCDEFGHI7ABCDEFGHI8ABCDEFGHI9ABCDEFGHI0ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEFGHI6ABCDEFGHI7ABCDEFGHI8ABCDEFGHI9ABCDEFGHI0ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEF", FALSE, FALSE },
101 { "ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEFGHI6ABCDEFGHI7ABCDEFGHI8ABCDEFGHI9ABCDEFGHI0ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDEFGHI6ABCDEFGHI7ABCDEFGHI8ABCDEFGHI9ABCDEFGHI0ABCDEFGHI1ABCDEFGHI2ABCDEFGHI3ABCDEFGHI4ABCDEFGHI5ABCDE\\ABC", FALSE, TRUE, FALSE, TRUE, FALSE },
103
105{
106 0, /* CTRL+@, 0x00 */
107 FSRTL_OLE_LEGAL, /* CTRL+A, 0x01 */
108 FSRTL_OLE_LEGAL, /* CTRL+B, 0x02 */
109 FSRTL_OLE_LEGAL, /* CTRL+C, 0x03 */
110 FSRTL_OLE_LEGAL, /* CTRL+D, 0x04 */
111 FSRTL_OLE_LEGAL, /* CTRL+E, 0x05 */
112 FSRTL_OLE_LEGAL, /* CTRL+F, 0x06 */
113 FSRTL_OLE_LEGAL, /* CTRL+G, 0x07 */
114 FSRTL_OLE_LEGAL, /* CTRL+H, 0x08 */
115 FSRTL_OLE_LEGAL, /* CTRL+I, 0x09 */
116 FSRTL_OLE_LEGAL, /* CTRL+J, 0x0a */
117 FSRTL_OLE_LEGAL, /* CTRL+K, 0x0b */
118 FSRTL_OLE_LEGAL, /* CTRL+L, 0x0c */
119 FSRTL_OLE_LEGAL, /* CTRL+M, 0x0d */
120 FSRTL_OLE_LEGAL, /* CTRL+N, 0x0e */
121 FSRTL_OLE_LEGAL, /* CTRL+O, 0x0f */
122 FSRTL_OLE_LEGAL, /* CTRL+P, 0x10 */
123 FSRTL_OLE_LEGAL, /* CTRL+Q, 0x11 */
124 FSRTL_OLE_LEGAL, /* CTRL+R, 0x12 */
125 FSRTL_OLE_LEGAL, /* CTRL+S, 0x13 */
126 FSRTL_OLE_LEGAL, /* CTRL+T, 0x14 */
127 FSRTL_OLE_LEGAL, /* CTRL+U, 0x15 */
128 FSRTL_OLE_LEGAL, /* CTRL+V, 0x16 */
129 FSRTL_OLE_LEGAL, /* CTRL+W, 0x17 */
130 FSRTL_OLE_LEGAL, /* CTRL+X, 0x18 */
131 FSRTL_OLE_LEGAL, /* CTRL+Y, 0x19 */
132 FSRTL_OLE_LEGAL, /* CTRL+Z, 0x1a */
133 FSRTL_OLE_LEGAL, /* CTRL+[, 0x1b */
134 FSRTL_OLE_LEGAL, /* CTRL+\, 0x1c */
135 FSRTL_OLE_LEGAL, /* CTRL+], 0x1d */
136 FSRTL_OLE_LEGAL, /* CTRL+^, 0x1e */
137 FSRTL_OLE_LEGAL, /* CTRL+_, 0x1f */
140 FSRTL_OLE_LEGAL | FSRTL_WILD_CHARACTER, /* `"', 0x22 */
148 FSRTL_OLE_LEGAL | FSRTL_WILD_CHARACTER, /* `*', 0x2a */
153 0, /* `/', 0x2f */
164 FSRTL_NTFS_LEGAL, /* `:', 0x3a */
166 FSRTL_OLE_LEGAL | FSRTL_WILD_CHARACTER, /* `<', 0x3c */
168 FSRTL_OLE_LEGAL | FSRTL_WILD_CHARACTER, /* `>', 0x3e */
169 FSRTL_OLE_LEGAL | FSRTL_WILD_CHARACTER, /* `?', 0x3f */
198 0, /* `\', 0x5c */
230 FSRTL_OLE_LEGAL, /* `|', 0x7c */
234};
235
236START_TEST(FsRtlLegal)
237{
238 ULONG i;
240 ANSI_STRING DbcsName;
241 ULONG Flags;
242
243 for (i = 0; i < RTL_NUMBER_OF(NamesTests); i++)
244 {
245 RtlInitAnsiString(&DbcsName, NamesTests[i].Dbcs);
246 for (Flags = 0; Flags < 8; Flags++)
247 {
248 Result = FsRtlIsFatDbcsLegal(DbcsName,
251 BooleanFlagOn(Flags, 4));
252 if (NamesTests[i].HasWildCards && !FlagOn(Flags, 1))
253 ok(Result == FALSE, "[%s] Result = %u but has wildcards\n", NamesTests[i].Dbcs, Result);
254 else if (NamesTests[i].IsPath && !FlagOn(Flags, 2))
255 ok(Result == FALSE, "[%s] Result = %u but is path\n", NamesTests[i].Dbcs, Result);
256 else if (NamesTests[i].LeadingBackslash && !FlagOn(Flags, 4))
257 ok(Result == FALSE, "[%s] Result = %u but has leading backslash\n", NamesTests[i].Dbcs, Result);
258 else if (!NamesTests[i].LegalFat)
259 ok(Result == FALSE, "[%s] Result = %u but is NOT legal FAT\n", NamesTests[i].Dbcs, Result);
260 else
261 ok(Result == TRUE, "[%s] Result = %u but IS legal FAT\n", NamesTests[i].Dbcs, Result);
262
263 Result = FsRtlIsHpfsDbcsLegal(DbcsName,
266 BooleanFlagOn(Flags, 4));
267 if (NamesTests[i].HasWildCards && !FlagOn(Flags, 1))
268 ok(Result == FALSE, "[%s] Result = %u but has wildcards\n", NamesTests[i].Dbcs, Result);
269 else if (NamesTests[i].IsPath && !FlagOn(Flags, 2))
270 ok(Result == FALSE, "[%s] Result = %u but is path\n", NamesTests[i].Dbcs, Result);
271 else if (NamesTests[i].LeadingBackslash && !FlagOn(Flags, 4))
272 ok(Result == FALSE, "[%s] Result = %u but has leading backslash\n", NamesTests[i].Dbcs, Result);
273 else if (!NamesTests[i].LegalHpfs)
274 ok(Result == FALSE, "[%s] Result = %u but is NOT legal HPFS\n", NamesTests[i].Dbcs, Result);
275 else
276 ok(Result == TRUE, "[%s] Result = %u but IS legal HPFS\n", NamesTests[i].Dbcs, Result);
277 }
278 }
279
280 for (i = 0; i <= 0x7f; ++i)
281 {
283 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, LegalAnsiCharacterArray[i], (*FsRtlLegalAnsiCharacterArray)[i]);
284
286 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterWild(i), BooleanFlagOn(LegalAnsiCharacterArray[i], FSRTL_WILD_CHARACTER));
287
289 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalFat(i, FALSE), BooleanFlagOn(LegalAnsiCharacterArray[i], FSRTL_FAT_LEGAL));
291 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalFat(i, TRUE),
293
295 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalHpfs(i, FALSE), BooleanFlagOn(LegalAnsiCharacterArray[i], FSRTL_HPFS_LEGAL));
297 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalHpfs(i, TRUE),
299
301 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalNtfs(i, FALSE), BooleanFlagOn(LegalAnsiCharacterArray[i], FSRTL_NTFS_LEGAL));
303 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalNtfs(i, TRUE),
305
307 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalNtfsStream(i, FALSE), BooleanFlagOn(LegalAnsiCharacterArray[i], FSRTL_NTFS_STREAM_LEGAL));
309 "Mismatching value for 0x%x: 0x%x (exp) - 0x%x (got)\n", i, FsRtlIsAnsiCharacterLegalNtfsStream(i, TRUE),
311 }
312}
static struct @1622 NamesTests[]
static const UCHAR LegalAnsiCharacterArray[]
Definition: FsRtlLegal.c:104
BOOLEAN HasWildCards
Definition: FsRtlLegal.c:16
PCSTR Dbcs
Definition: FsRtlLegal.c:13
BOOLEAN IsPath
Definition: FsRtlLegal.c:17
BOOLEAN LeadingBackslash
Definition: FsRtlLegal.c:18
BOOLEAN LegalHpfs
Definition: FsRtlLegal.c:15
BOOLEAN LegalFat
Definition: FsRtlLegal.c:14
unsigned char BOOLEAN
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define ok(value,...)
Definition: atltest.h:57
#define START_TEST(x)
Definition: atltest.h:75
BOOLEAN NTAPI FsRtlIsFatDbcsLegal(IN ANSI_STRING DbcsName, IN BOOLEAN WildCardsPermissible, IN BOOLEAN PathNamePermissible, IN BOOLEAN LeadingBackslashPermissible)
Definition: dbcsname.c:466
BOOLEAN NTAPI FsRtlIsHpfsDbcsLegal(IN ANSI_STRING DbcsName, IN BOOLEAN WildCardsPermissible, IN BOOLEAN PathNamePermissible, IN BOOLEAN LeadingBackslashPermissible)
Definition: dbcsname.c:638
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define FlagOn(_F, _SF)
Definition: ext2fs.h:179
#define BooleanFlagOn(F, SF)
Definition: ext2fs.h:183
#define FsRtlIsAnsiCharacterLegalHpfs(C, WILD)
Definition: fsrtlfuncs.h:1614
#define FsRtlIsAnsiCharacterLegalNtfs(C, WILD)
Definition: fsrtlfuncs.h:1617
#define FsRtlIsAnsiCharacterWild(C)
Definition: fsrtlfuncs.h:1608
#define FsRtlIsAnsiCharacterLegalFat(C, WILD)
Definition: fsrtlfuncs.h:1611
#define FsRtlIsAnsiCharacterLegalNtfsStream(C, WILD_OK)
Definition: fsrtlfuncs.h:1620
const UCHAR *const FsRtlLegalAnsiCharacterArray
Definition: fsrtlpc.c:154
#define FSRTL_HPFS_LEGAL
Definition: fsrtltypes.h:83
#define FSRTL_OLE_LEGAL
Definition: fsrtltypes.h:86
#define FSRTL_WILD_CHARACTER
Definition: fsrtltypes.h:85
#define FSRTL_NTFS_STREAM_LEGAL
Definition: fsrtltypes.h:87
#define FSRTL_NTFS_LEGAL
Definition: fsrtltypes.h:84
#define FSRTL_FAT_LEGAL
Definition: fsrtltypes.h:82
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG
Definition: typedefs.h:59
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
unsigned char UCHAR
Definition: xmlstorage.h:181