ZwCreateSection

Hi, I’m using “ZwCreateSection” but I get an error code that indicates that the 6th parameter is invalid. This parameter is AllocationAttributes, I set this to (SEC_FILE | SEC_COMMIT) as the Nagar’s book says. How do I have to set this parameter?
Thanks.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

status = ZwCreateSection(&Section, SECTION_MAP_READ |
SECTION_MAP_WRITE,
NULL, &size, PAGE_READWRITE, SEC_COMMIT, File);

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ratmil Torres
Sent: Wednesday, October 24, 2001 7:25 AM
To: File Systems Developers
Subject: [ntfsd] ZwCreateSection

Hi, I’m using “ZwCreateSection” but I get an error code that indicates
that the 6th parameter is invalid. This parameter is
AllocationAttributes, I set this to (SEC_FILE | SEC_COMMIT) as the
Nagar’s book says. How do I have to set this parameter?
Thanks.

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

On 10/24/01, ““Ratmil Torres” ” wrote:
> Hi, I’m using “ZwCreateSection” but I get an error code that indicates =
> that the 6th parameter is invalid. This parameter is =
> AllocationAttributes, I set this to (SEC_FILE | SEC_COMMIT) as the =
> Nagar’s book says. How do I have to set this parameter?
> Thanks.

In spite of the documentation (and common sense), you must not specify
SEC_FILE. Just SEC_COMMIT. The documentation states that SEC_FILE gets
implied if you set the final paramter to a non-zero value, and this does
indeed seem to be the case.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Try just SEC_COMMIT.

Max

----- Original Message -----
From: Ratmil Torres
To: File Systems Developers
Sent: Wednesday, October 24, 2001 6:25 PM
Subject: [ntfsd] ZwCreateSection

Hi, I’m using “ZwCreateSection” but I get an error code that indicates that the 6th parameter is invalid. This parameter is AllocationAttributes, I set this to (SEC_FILE | SEC_COMMIT) as the Nagar’s book says. How do I have to set this parameter?
Thanks.

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yes, it is the case, but it worked when I set it to SEC_COMMIT, but what did
not work was the ZwMapViewOfSection.
Thanks. Well, i’m trying to avoid using file mapping.

----- Original Message -----
From:
To: “File Systems Developers”
Sent: Thursday, October 25, 2001 11:43 AM
Subject: [ntfsd] Re: ZwCreateSection

> On 10/24/01, ““Ratmil Torres” ” wrote:
> > Hi, I’m using “ZwCreateSection” but I get an error code that indicates =
> > that the 6th parameter is invalid. This parameter is =
> > AllocationAttributes, I set this to (SEC_FILE | SEC_COMMIT) as the =
> > Nagar’s book says. How do I have to set this parameter?
> > Thanks.
>
> In spite of the documentation (and common sense), you must not specify
> SEC_FILE. Just SEC_COMMIT. The documentation states that SEC_FILE gets
> implied if you set the final paramter to a non-zero value, and this does
> indeed seem to be the case.
>
> —
> You are currently subscribed to ntfsd as: xxxxx@seg.inf.cu
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com