Language: C
OS: Windows
My application is framed with nt level apis and has to manipulate file and directory handles.
On a Zwopenfile or zwcreate file, I get a HANDLE
as a result. Usually the values for the HANDLE
are like 0x00000024, 28,2c... etc.
When I cast it as a LPBYTE
to view the contents. Visual studio shows "Expression could not be evaluated". I understood from that the HANDLE
returned from create/open file apis are not pointers to a memory location. However, windows uses the value and performing file operations.
Ntquerydirectory
object supplies me the infomation about handles. However, how windows have implemented this functionality is unknown.
Can anyone throw light on it.