NdisRegisterDeviceEx() and CreateFile() security settings.



Hi all

Ndis 6 and Vista...

I am using NdisRegisterDeviceEx() with as SDDL of "D:P(A;;GA;;;SY)
(A;;GA;;;BA)(A;;GRGW;;;BU)(A;;GRGW;;;WD)" and it returns
STATUS_SUCCESS. With a symboliclinks viewer I can see my device.

But, when I try to open it with CreateFile() is using GENERIC_READ |
GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL I get the error: 'The
request is not supported'.

I have tried it with a 0 SDDL too with the same result.

I am logged in as Administrator but this needs to work for users too.

The old function, NdisRegisterDevice() works on Vista with my Ndis 5.1
driver.

Doeas anyone have any ideas? I looked at the netvmini code that ships
with the 6000 DDK and dont seed any reason for my code to fail.

Thanks in advance for any suggestions on this.

.