Try to use FILE_READ_ATTRIBUTES as DesiredAccess.
Hope this helps.
Paul
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@radisys.com
Sent: Friday, January 05, 2001 5:31 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Installing a filter driver on NT 4.0
I resolved the issue. I had the wrong TargetDevice name. However, now I
have a new problem. I am trying to attach to the Video device and I
specify
the device name as follows:
#define TARGET_DEVICE_NAME L"\Device\Video0"
Then, I get the pointer to the Target device as follows:
RtlInitUnicodeString (&TargetDeviceName, TARGET_DEVICE_NAME);
// Get a pointer to its device object
status = IoGetDeviceObjectPointer (
&TargetDeviceName,
FILE_ALL_ACCESS,
&FileObject,
&TargetDevice);
I get a “Access is denied” error. How can the lower driver prevent
access
and can I circumvent that?
Sheela.
On 01/05/01, “xxxxx@radisys.com” wrote:
Hi,
I am trying to install an NT 4.0 filter driver. To do this, I copied
the
driver to \winnt\system32\drivers directory. I then added the
following to
the registry:
A new key -
HKLM\System\CurrentControlSet\Services\PmcVcFlt
Values in that key -
ErrorControl:REG_DWORD:0x1
Start:REG_DWORD:0x3
Type:REG_DWORD:0x1
After rebooting the machine, when I try to start the driver using the
Service Control applet (Control Panel->Services), it seems to be
unable to
find my driver. The error it gives is, “The system cannot find the
specified file.” Can somebody please tell me what I am doing wrong?
I would appreciate any help.
Thanks in advance,
Sheela.
You are currently subscribed to ntdev as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com