Oh, I think CreateFile, ReadFile, WriteFile must can't be called at that
time, and I found there is a NtOpenFile in NTDLL.dll, but can't find the
definition of that function so I disassembled that function and found it
call IoCreateFile, Ok, there are 2 solution now, but I don't know if it is
feasible,
1. Replace all the IO function that use the Win32 API with the DDK IO
function.
2. I also found LdrLoadDll in NTDLL.dll, is it possible to load the module
that implement the CreateFile, then there is no need to modify my existing
program.
What is your suggestion? Thank you very much!
Regards,
ZhangZQ
> Don Burn,
>
[quoted text clipped - 28 lines]
>>> Regards,
>>> ZhangZQ
Jonathan Wilson - 14 Sep 2004 06:09 GMT
If there is a Ntxxxx function documented in the windows DDK (or MSDN), the
prototype will be the same in ntdll.dll as in ntoskrnl.exe. This is because
ntdll.dll ntxxx functions all call through to the same functions in
ntoskrnl.exe.
Jonathan Wilson - 14 Sep 2004 06:13 GMT
check here
http://undocumented.ntinternals.net/
for documenation on the ntdll.dll functions you want to use.
ZhangZQ - 14 Sep 2004 06:43 GMT
Wah!! GREAT!!! Thank you very much!
Regards,
ZhangZQ
> check here
> http://undocumented.ntinternals.net/
> for documenation on the ntdll.dll functions you want to use.
CheckAbdoul - 14 Sep 2004 14:30 GMT
There should be a equivalent call to NtOpenFile named as ZwOpenFile() in
ntdll.dll. Native applications generally can call only API's from ntdll.dll
and can also send IOCTL's to drivers to get things done.

Signature
Cheers
Check Abdoul [VC++ MVP]
-----------------------------------
> Oh, I think CreateFile, ReadFile, WriteFile must can't be called at that
> time, and I found there is a NtOpenFile in NTDLL.dll, but can't find the
[quoted text clipped - 45 lines]
> >>> Regards,
> >>> ZhangZQ