From 4be85650705e119c34abd9e5e3b87c9588b75226 Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Thu, 6 Feb 2003 21:20:16 +0000 Subject: [PATCH] Just a place to put code that may be useful later --- Doc/RemovedCode.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Doc/RemovedCode.txt diff --git a/Doc/RemovedCode.txt b/Doc/RemovedCode.txt new file mode 100644 index 000000000..7140bf917 --- /dev/null +++ b/Doc/RemovedCode.txt @@ -0,0 +1,41 @@ +xboxkrnl::NtOpenFile : + + /* + char * checkString = "\\Device\\Harddisk0\\partition1\\"; + + if + ( + CompareString + ( + LOCALE_USER_DEFAULT, + NORM_IGNORECASE, + ObjectAttributes->ObjectName->Buffer, + ObjectAttributes->ObjectName->Length, + checkString, + strlen(checkString) + ) + == CSTR_EQUAL + ) + { + xntdll::OBJECT_ATTRIBUTES iObjectAttributes; + xntdll::UNICODE_STRING iUnicodeString = + { + 30, + 32, + L"C:\\Aaron\\XBoxHD" + }; + + InitializeObjectAttributes + ( + &iObjectAttributes, + &iUnicodeString, + ObjectAttributes->Attributes, + ObjectAttributes->RootDirectory, + NULL + ); + + if(xntdll::ZwOpenFile(FileHandle, DesiredAccess, &iObjectAttributes, (xntdll::_IO_STATUS_BLOCK*)IoStatusBlock, ShareAccess, OpenOptions) == STATUS_SUCCESS) + MessageBox(NULL, (char*)ObjectAttributes->ObjectName->Buffer, "CxbxKrnl", MB_OK); + } + */ +