ZwCreateSection in win2k?

I am having problems with ZwCreateSection in my mini-filter in Win2k. The
values of SEC_COMMIT and SEC_FILE are both undefined by the compiler for the
AllocationAttributes parameter.

I have tried the values of 0, 0x08000000 (SEC_COMMIT), 0x00800000
(SEC_FILE), and 0x08800000 (SEC_COMMIT | SEC_FILE), and in all cases I get a
bad status back that says the sixth parameter (AllocationAttributes) is
invalid.

I found one NTFSD posting on this (in Google but not on osronline for some
reason) and the response was to use SEC_COMMIT and not use SEC_FILE, but
neither one compiles for me.

What should I put in for the AllocationAttributes parameter of
ZwCreateSection in win2k? I used SEC_COMMIT for winxp and win2k3 with no
problem.

I don’t know what I did wrong before, but it is now working with 0x08000000
(SEC_COMMIT). I still don’t know why SEC_COMMIT isn’t defined in my build.

“Mark Hahn” wrote in message news:xxxxx@ntfsd…
>I am having problems with ZwCreateSection in my mini-filter in Win2k. The
> values of SEC_COMMIT and SEC_FILE are both undefined by the compiler for
> the
> AllocationAttributes parameter.
>
> I have tried the values of 0, 0x08000000 (SEC_COMMIT), 0x00800000
> (SEC_FILE), and 0x08800000 (SEC_COMMIT | SEC_FILE), and in all cases I get
> a
> bad status back that says the sixth parameter (AllocationAttributes) is
> invalid.
>
> I found one NTFSD posting on this (in Google but not on osronline for some
> reason) and the response was to use SEC_COMMIT and not use SEC_FILE, but
> neither one compiles for me.
>
> What should I put in for the AllocationAttributes parameter of
> ZwCreateSection in win2k? I used SEC_COMMIT for winxp and win2k3 with no
> problem.
>
>
>
>