NtLock/NtUnlock

In the process of researching locking, I was looking at the ntifs.h
definitions and I noticed that NtLockFile has a prototype defined, but
NtUnlockFile does not (there is a comment in the structure definitions
about the structures being for both NtLockFile and NtUnlockFile, so I
suspect there actually is an NtUnlockFile routine…). Is there a logic in
not defining the Unlock half of the pair, or was it simply “a nobody uses
it so we won’t put it in the headers” sort of thing?

thanks…dave

You’ll find the prototype in the Rajeev Nagar book. Also, I find http://google.com is a good resource for NT prototypes.

-----Original Message-----
From: David Beaver [mailto:xxxxx@exmsft.com]
Sent: Thursday, March 21, 2002 11:11 PM
To: File Systems Developers
Subject: [ntfsd] NtLock/NtUnlock

In the process of researching locking, I was looking at the ntifs.h
definitions and I noticed that NtLockFile has a prototype defined, but
NtUnlockFile does not (there is a comment in the structure definitions
about the structures being for both NtLockFile and NtUnlockFile, so I
suspect there actually is an NtUnlockFile routine…). Is there a logic in
not defining the Unlock half of the pair, or was it simply “a nobody uses
it so we won’t put it in the headers” sort of thing?

thanks…dave


You are currently subscribed to ntfsd as: xxxxx@inin.com
To unsubscribe send a blank email to %%email.unsub%%

David,

Thanks for pointing this out. This was simply an oversight from some
time ago, we will fix this.

Neal Christiansen

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: David Beaver [mailto:xxxxx@exmsft.com]
Sent: Thursday, March 21, 2002 8:11 PM
To: File Systems Developers
Subject: [ntfsd] NtLock/NtUnlock

In the process of researching locking, I was looking at the ntifs.h
definitions and I noticed that NtLockFile has a prototype defined, but
NtUnlockFile does not (there is a comment in the structure definitions
about the structures being for both NtLockFile and NtUnlockFile, so I
suspect there actually is an NtUnlockFile routine…). Is there a logic
in
not defining the Unlock half of the pair, or was it simply “a nobody
uses
it so we won’t put it in the headers” sort of thing?

thanks…dave


You are currently subscribed to ntfsd as: xxxxx@Windows.Microsoft.com
To unsubscribe send a blank email to %%email.unsub%%

Thanks, Neal, that’s what I figured. Thanks also to everyone who sent me
prototypes to NtUnlockFile, even though that wasn’t really the question…