VOID IoInit (VOID)
{
-#ifndef LIBCAPTIVE
OBJECT_ATTRIBUTES ObjectAttributes;
UNICODE_STRING DirName;
+#ifndef LIBCAPTIVE
UNICODE_STRING LinkName;
+#endif /* LIBCAPTIVE */
HANDLE Handle;
+#ifndef LIBCAPTIVE
IopInitDriverImplementation();
#endif /* LIBCAPTIVE */
RtlInitUnicodeStringFromLiteral(&IoFileObjectType->TypeName, REACTOS_UCS2(L"File"));
-#ifndef LIBCAPTIVE
/*
* Create the '\Driver' object directory
*/
- RtlInitUnicodeStringFromLiteral(&DirName, L"\\Driver");
+ RtlInitUnicodeStringFromLiteral(&DirName, REACTOS_UCS2(L"\\Driver"));
InitializeObjectAttributes(&ObjectAttributes,
&DirName,
0,
* Create the '\FileSystem' object directory
*/
RtlInitUnicodeStringFromLiteral(&DirName,
- L"\\FileSystem");
+ REACTOS_UCS2(L"\\FileSystem"));
InitializeObjectAttributes(&ObjectAttributes,
&DirName,
0,
* Create the '\Device' directory
*/
RtlInitUnicodeStringFromLiteral(&DirName,
- L"\\Device");
+ REACTOS_UCS2(L"\\Device"));
InitializeObjectAttributes(&ObjectAttributes,
&DirName,
0,
0,
&ObjectAttributes);
+#ifndef LIBCAPTIVE
/*
* Create the '\??' directory
*/
RtlInitUnicodeStringFromLiteral(&DirName,
- L"\\??");
+ REACTOS_UCS2(L"\\??"));
InitializeObjectAttributes(&ObjectAttributes,
&DirName,
0,
* Create the '\ArcName' directory
*/
RtlInitUnicodeStringFromLiteral(&DirName,
- L"\\ArcName");
+ REACTOS_UCS2(L"\\ArcName"));
InitializeObjectAttributes(&ObjectAttributes,
&DirName,
0,