Installing a filter driver on NT 4.0

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: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

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: $subst(‘Recip.EmailAddr’)
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

Is you driver name same as the services key? If you don’t specify the
ImagePath, your driver name should be PmcVcFlt.sys.

-Eliyas

-----Original Message-----
From: xxxxx@radisys.com [mailto:xxxxx@radisys.com]
Sent: Thursday, January 04, 2001 5:00 PM
To: NT Developers Interest List
Subject: [ntdev] Installing a filter driver on NT 4.0

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@microsoft.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


Try adding ImagePath(REG_EXPAND_SZ) with value “System32\drivers\file_name”

<?xml:namespace prefix = mailto />
>
>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@hotmail.com
>To unsubscribe send a blank email to leave-ntdev-$subst('Recip.MemberIDChar')@lists.osr.com
* * * Get your FREE download of MSN Explorer at [http://explorer.msn.com](http://explorer.msn.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

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

Thanks to everybody for their suggestions. I tried using FILE_READ_DATA as
the ‘DesiredAccess’, that didn’t work either. Are there any other ways or
is this basically a dead end? I tried to find some documentation regarding
security for a Device Object, but was not very successful. How does one
control access to a Device Object?

Thanks,
Sheela.

On 01/07/01, “Hrdina Pavel ” wrote:
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------ =_NextPart_001_01C078C7.9FD67F30
> Content-Type: text/plain
>
> 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
>


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