path problem
-
hy can someone pls tell me what is the correct kernel path for a root directory like c:\ for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ? gabby
-
hy can someone pls tell me what is the correct kernel path for a root directory like c:\ for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ? gabby
euacela wrote:
...but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ?
Is it HardDiskVolume0 instead?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
euacela wrote:
...but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ?
Is it HardDiskVolume0 instead?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
no that is the pb. HardDiskVolume1 -> c:\ HardDiskVolume2 -> d:\ etc . . . I saw somewhere something with _root_ but don t know exactly where and don t know exactly how :( gabby
So what is
NtOpenFile()
returning?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
hy can someone pls tell me what is the correct kernel path for a root directory like c:\ for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ? gabby
what do you need?
-
So what is
NtOpenFile()
returning?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
returns !ERROR_SUCCESS . Man I am not working with the ddk. this is an user mode aplication so I can't get extended help. gabby
You can get more information about the error by checking status information returned in IoStatusBlock.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb