Hi!
I am unable to use the Windows NT System services from my user mode application. I am allowed to call the Windows NT System services from user mode, am I not?
All that I need to do is make the call NtOpenFile(). I am able to build my application but I get the ‘Application Error’ : ‘The application failed to initialize properly (0xc0000005)’.
I am using Visual Studio 6. I am building a console window application.
I have specified the ntoskrnl.lib to be linked.
I have declared the function ‘NtOpenFile’ as follows.
NTSTATUS __stdcall NtOpenFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG ShareAccess,
IN ULONG OpenOptions
);
Can anyone tell me what I am doing wrong?
Thanks in advance!
Manoj
Manoj Paul Joseph,
Master of Computer Applications (final year student),
School of Computer Science and Engineering,
Anna University,
Chennai (Madras),
India.
Download exciting Logos, Picture Messages & Ringtones for your mobile phone