Misc experimentation.

This commit is contained in:
Ben Vanik
2014-06-08 23:11:09 -07:00
parent 052dca5010
commit 95508273f6
3 changed files with 12 additions and 0 deletions

View File

@@ -392,6 +392,13 @@ SHIM_CALL NtQueryInformationFile_shim(
if (XSUCCEEDED(result)) {
result = X_STATUS_SUCCESS;
switch (file_info_class) {
case XFileInternalInformation:
// Internal unique file pointer. Not sure why anyone would want this.
XEASSERT(length == 8);
info = 8;
// TODO(benvanik): use pointer to fs:: entry?
SHIM_SET_MEM_64(file_info_ptr, hash_combine(0, file->absolute_path()));
break;
case XFilePositionInformation:
// struct FILE_POSITION_INFORMATION {
// LARGE_INTEGER CurrentByteOffset;