Handle to driver

Hi All,

I want to have an IOCTL communication with my filter driver, from
the application running in User mode. My driver is statically loaded.
When I try this from the application running in admin mode it works fine
but from the user mode application not happening. Please help.

Regards
Raghwendra

============================================================================================================================

Disclaimer:

This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra.

============================================================================================================================

This is by design. You must have administrative privileges.

mm


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Raghwendra
Kshatriya
Sent: Thursday, August 09, 2007 02:34
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Handle to driver

Hi All,

I want to have an IOCTL communication with my filter driver, from
the application running in User mode. My driver is statically loaded.
When I try this from the application running in admin mode it works fine
but from the user mode application not happening. Please help.

Regards
Raghwendra


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

========================================================================

Disclaimer:

This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review the policy at http://www.techmahindra.com/Disclaimer.html
externally and http://tim.techmahindra.com/Disclaimer.html internally
within Tech Mahindra.

========================================================================

What API are you using to open the device, and what IOCTL are you using?

From my experience, it seems that opening a device with different
parameters and changing the IOCTL_CODE used helps.

That is:
I have replaced this code:
g_ibsp.h_ibat_dev = CreateFileW( IBAT_WIN32_NAME,
GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );

#define IOCTL_IBAT( n ) \
CTL_CODE( FILE_DEVICE_UNKNOWN, (0x800 + n), \
METHOD_BUFFERED, FILE_READ_ACCESS )

with

g_ibsp.h_ibat_dev = CreateFileW( IBAT_WIN32_NAME,
MAXIMUM_ALLOWED, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
#define IOCTL_IBAT( n ) \
CTL_CODE( FILE_DEVICE_UNKNOWN, (0x800 + n), \
METHOD_BUFFERED, FILE_ANY_ACCESS )

Thanks
Tzachi


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Raghwendra
Kshatriya
Sent: Thursday, August 09, 2007 9:34 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Handle to driver

Hi All,

I want to have an IOCTL communication with my filter driver,
from the application running in User mode. My driver is statically
loaded. When I try this from the application running in admin mode it
works fine but from the user mode application not happening. Please
help.

Regards
Raghwendra


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

====================================================

Disclaimer:

This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review the policy at http://www.techmahindra.com/Disclaimer.html
externally and http://tim.techmahindra.com/Disclaimer.html internally
within Tech Mahindra.

========================================================================