I tried to find the usage of NtqueryDirectoryFile() function.

http://msdn.microsoft.com/en-us/library/windows/hardware/ff556633%28v=vs.85%29.aspx

I refered the above link for this. But, They mentioned about Zwxxx (). I couldn't understand Ntxx and ZWxxx. Can anyone explain about this.

有帮助吗?

解决方案

Basically Zw functions are equivalent of Nt functions except they don't do security checks, so are used inside kernel mode only, to avoid the performance penalty.

You can only call Nt functions from user mode, through ntdll.dll. As Michael pointed out Zw functions are just mnemonics to Nt counterparts in user mode.

@Adriano provided a nice link: http://msdn.microsoft.com/en-us/library/windows/hardware/ff565438(v=vs.85).aspx

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top