Улыбнуло (из исходников NTFS NT4):
//
// Here is the "M A R K L U C O V S K Y" hack from hell.
//
// It's here because Mark says he can't avoid sending me double beginning
// backslashes win the Win32 layer.
//
if ((OplockCleanup.FileObject->FileName.Length > sizeof( WCHAR )) &&
(OplockCleanup.FileObject->FileName.Buffer[1] == L'\\') &&
(OplockCleanup.FileObject->FileName.Buffer[0] == L'\\')) {
OplockCleanup.FileObject->FileName.Length -= sizeof( WCHAR );
RtlMoveMemory( &OplockCleanup.FileObject->FileName.Buffer[0],
&OplockCleanup.FileObject->FileName.Buffer[1],
OplockCleanup.FileObject->FileName.Length );
*FullFileName = *OriginalFileName = OplockCleanup.FileObject->FileName;
//
// If there are still two beginning backslashes, the name is bogus.
//
if ((OplockCleanup.FileObject->FileName.Length > sizeof( WCHAR )) &&
(OplockCleanup.FileObject->FileName.Buffer[1] == L'\\')) {
Status = STATUS_OBJECT_NAME_INVALID;
try_return( Status );
}
}