My call to NtOpenFile is acting wierd, and I noticed
that the prototype of NtOpenFile as in MSDN docs and
winternl.h does not match with that of ZwOpenFile in
DDK. The difference is in return type. Can someone
clarify why this is so and which one is right? Thanks!
NTSTATUS
ZwOpenFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG ShareAccess,
IN ULONG OpenOptions
);
void NtOpenFile(
PHANDLE FileHandle,
ACCESS_MASK DesiredAccess,
POBJECT_ATTRIBUTES ObjectAttributes,
PIO_STATUS_BLOCK IoStatusBlock,
ULONG ShareAccess,
ULONG OpenOptions);
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
The current version of winternl.h has NTSTATUS as the return value from
NtOpenFile.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Santosh
Sent: Thursday, August 11, 2005 9:28 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NtOpenFile and ZwOpenFile prototypes dont match!
My call to NtOpenFile is acting wierd, and I noticed
that the prototype of NtOpenFile as in MSDN docs and
winternl.h does not match with that of ZwOpenFile in
DDK. The difference is in return type. Can someone
clarify why this is so and which one is right? Thanks!
NTSTATUS
ZwOpenFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG ShareAccess,
IN ULONG OpenOptions
);
void NtOpenFile(
PHANDLE FileHandle,
ACCESS_MASK DesiredAccess,
POBJECT_ATTRIBUTES ObjectAttributes,
PIO_STATUS_BLOCK IoStatusBlock,
ULONG ShareAccess,
ULONG OpenOptions);
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
NtOpenFile returns an NTSTATUS and is so documented on MSDN (and actually it returns a SUCCESS or ERROR value).
Perhaps you are reading a wrong version of MSDN ?
-----Mensaje original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]En nombre de Santosh
Enviado el: jueves, 11 de agosto de 2005 18:28
Para: Windows System Software Devs Interest List
Asunto: [ntdev] NtOpenFile and ZwOpenFile prototypes dont match!
My call to NtOpenFile is acting wierd, and I noticed
that the prototype of NtOpenFile as in MSDN docs and
winternl.h does not match with that of ZwOpenFile in
DDK. The difference is in return type. Can someone
clarify why this is so and which one is right? Thanks!
NTSTATUS
ZwOpenFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG ShareAccess,
IN ULONG OpenOptions
);
void NtOpenFile(
PHANDLE FileHandle,
ACCESS_MASK DesiredAccess,
POBJECT_ATTRIBUTES ObjectAttributes,
PIO_STATUS_BLOCK IoStatusBlock,
ULONG ShareAccess,
ULONG OpenOptions);
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@pandasoftware.es
To unsubscribe send a blank email to xxxxx@lists.osr.com