Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Duplicate DeviceInterfases

Reply
Thread Tools Display Modes

Duplicate DeviceInterfases

 
 
Brausewetter, Kurt
Guest
Posts: n/a

 
      09-09-2010
Hi
I work on a Device Upper Filter (WDK: Toaster)

I'm in the FilterAddDevice function and Enum the DeviceInterfaces with
IoGetDeviceInterfaces

Now my question:
How can i dublicate an DeviceInterface (in the same or an other
InterfaceClassGuid) with all Node/Pin Propertys/Data/...
The Interface is in its Driver with KsInitializeDriver or BdaXxxXxx generated.

CU Brause


 
Reply With Quote
 
 
 
 
Brausewetter, Kurt
Guest
Posts: n/a

 
      09-09-2010
like an Alias with all Node and Pin...


 
Reply With Quote
 
Tim Roberts
Guest
Posts: n/a

 
      09-11-2010
"Brausewetter, Kurt" <kurt.brausewetter_nospam_@t-online.de> wrote:
>
>I work on a Device Upper Filter (WDK: Toaster)
>
>I'm in the FilterAddDevice function and Enum the DeviceInterfaces with
>IoGetDeviceInterfaces
>
>Now my question:
>How can i dublicate an DeviceInterface (in the same or an other
>InterfaceClassGuid) with all Node/Pin Propertys/Data/...
>The Interface is in its Driver with KsInitializeDriver or BdaXxxXxx generated.


I think you are confused. Device interface are just used to find drivers.
They don't have anything to do with functionality. Unfortunately, the word
"interface" has several conflicting meanings in the driver world.

All of the kernel streaming APIs are implemented through ioctls. Why do
you want to duplicate them? As a filter driver, you can just pass through
the ones you don't want to handle.
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
Brausewetter, Kurt
Guest
Posts: n/a

 
      09-11-2010
Thanks for Answer!

No i'm not confused!
Why will i dublicate it (DeviceInterface)
I have a proprietary Software that use only it's own Interfaces
(FriendlyName). So i will it not Rename (The (SDK from the NEW Card have
Problems with this way)
When i have an Intervce with the orginal FriendlyName and one with the
proprietary FriendlyName.
BTW: It's a BDA RF Tuner an Capture you know it as DVB Card for TV in Europe

CU Brause
--


--
Gruß Brause
private.php?do=newpm&u=
~~~~~ M$-TrueType:Courier New 10 ~~~~~
~~~~~~~ \\!// ~~~~~~~~~~~~~~~~~~
____ _( o o)_ ___ /(. .)\
_I__WW U WW_I_ ) (
___I___I___I___I___I__ ( Y )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PS: Der Kreis ist eine geometrische Figur, bei der an allen Ecken und Enden
gespart wurde.

"Tim Roberts" <> schrieb im Newsbeitrag
news:...
> "Brausewetter, Kurt" <kurt.brausewetter_nospam_@t-online.de> wrote:
>>
>>I work on a Device Upper Filter (WDK: Toaster)
>>
>>I'm in the FilterAddDevice function and Enum the DeviceInterfaces with
>>IoGetDeviceInterfaces
>>
>>Now my question:
>>How can i dublicate an DeviceInterface (in the same or an other
>>InterfaceClassGuid) with all Node/Pin Propertys/Data/...
>>The Interface is in its Driver with KsInitializeDriver or BdaXxxXxx
>>generated.

>
> I think you are confused. Device interface are just used to find drivers.
> They don't have anything to do with functionality. Unfortunately, the
> word
> "interface" has several conflicting meanings in the driver world.
>
> All of the kernel streaming APIs are implemented through ioctls. Why do
> you want to duplicate them? As a filter driver, you can just pass through
> the ones you don't want to handle.
> --
> Tim Roberts,
> Providenza & Boekelheide, Inc.



 
Reply With Quote
 
Brausewetter, Kurt
Guest
Posts: n/a

 
      09-14-2010
OK I'm confused: The words prove it ;-)
What want I to get:
I need 2 DeviceInterfaces (absolutely identical, to same PDO) with different
FriendlyName

AddDevice is not the right place. I have already learned from MSDN: The
DispatchPnp IRP_MN_START_DEVICE is better because I also has to react to
IRP_MN_REMOVE_DEVICE and others to start and stop etc.

But how can I Duplicate the Interface?

CU Brause

"Brausewetter, Kurt" <kurt.brausewetter_nospam_@t-online.de> schrieb im
Newsbeitrag news:...
> Thanks for Answer!
>
> No i'm not confused!
> Why will i dublicate it (DeviceInterface)
> I have a proprietary Software that use only it's own Interfaces
> (FriendlyName). So i will it not Rename (The (SDK from the NEW Card have
> Problems with this way)
> When i have an Intervce with the orginal FriendlyName and one with the
> proprietary FriendlyName.
> BTW: It's a BDA RF Tuner an Capture you know it as DVB Card for TV in Europe
>
> CU Brause
> --
>
>
> --
> Gruß Brause
> private.php?do=newpm&u=
> ~~~~~ M$-TrueType:Courier New 10 ~~~~~
> ~~~~~~~ \\!// ~~~~~~~~~~~~~~~~~~
> ____ _( o o)_ ___ /(. .)\
> _I__WW U WW_I_ ) (
> ___I___I___I___I___I__ ( Y )
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> PS: Der Kreis ist eine geometrische Figur, bei der an allen Ecken und Enden
> gespart wurde.
>
> "Tim Roberts" <> schrieb im Newsbeitrag
> news:...
>> "Brausewetter, Kurt" <kurt.brausewetter_nospam_@t-online.de> wrote:
>>>
>>>I work on a Device Upper Filter (WDK: Toaster)
>>>
>>>I'm in the FilterAddDevice function and Enum the DeviceInterfaces with
>>>IoGetDeviceInterfaces
>>>
>>>Now my question:
>>>How can i dublicate an DeviceInterface (in the same or an other
>>>InterfaceClassGuid) with all Node/Pin Propertys/Data/...
>>>The Interface is in its Driver with KsInitializeDriver or BdaXxxXxx
>>>generated.

>>
>> I think you are confused. Device interface are just used to find drivers.
>> They don't have anything to do with functionality. Unfortunately, the word
>> "interface" has several conflicting meanings in the driver world.
>>
>> All of the kernel streaming APIs are implemented through ioctls. Why do
>> you want to duplicate them? As a filter driver, you can just pass through
>> the ones you don't want to handle.
>> --
>> Tim Roberts,
>> Providenza & Boekelheide, Inc.

>
>



 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      09-14-2010
> But how can I Duplicate the Interface?

Just call IoRegisterDeviceInterface 2 times with different reference strings.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

 
Reply With Quote
 
Brausewetter, Kurt
Guest
Posts: n/a

 
      09-15-2010
MSDN:
ReferenceString [in, optional]

Optionally points to a UNICODE_STRING. The string must not contain any path
separator characters ("/" or "\"). Function drivers typically specify NULL for
this parameter. Filter drivers must specify NULL.

Filter Drivers must specify NULL => That's a Problem or can i take a Non-NULL
ReferenceString?

"Maxim S. Shatskih" <> schrieb im Newsbeitrag
news:%23c9e25$...
> But how can I Duplicate the Interface?


Just call IoRegisterDeviceInterface 2 times with different reference strings.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com


 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      09-16-2010
> Optionally points to a UNICODE_STRING. The string must not contain any path
> separator characters ("/" or "\"). Function drivers typically specify NULL for
> this parameter. Filter drivers must specify NULL.
>
> Filter Drivers must specify NULL => That's a Problem or can i take a Non-NULL
> ReferenceString?


You cannot define 2 device interfaces with the same GUID and same ReferenceString.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

 
Reply With Quote
 
Brausewetter, Kurt
Guest
Posts: n/a

 
      09-17-2010
OK, i Test

BTW: But what the F**k is that in MSDN: "Filter Drivers must specify NULL"

"Maxim S. Shatskih" <> schrieb im Newsbeitrag
news:...
> Optionally points to a UNICODE_STRING. The string must not contain any path
> separator characters ("/" or "\"). Function drivers typically specify NULL for
> this parameter. Filter drivers must specify NULL.
>
> Filter Drivers must specify NULL => That's a Problem or can i take a Non-NULL
> ReferenceString?


You cannot define 2 device interfaces with the same GUID and same
ReferenceString.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Try Directory Report<497065e3-814b-4e81-8f82-cebf92675064@a9g2000prl.googlegroups.com> Allan Windows Server 2 04-27-2010 03:47 PM
Why do my e-mails duplicate hundreds of times over? Joelnichole Windows Live Mail 2 04-22-2010 05:06 PM
Re: Restored Object (Computer) from AD Deleted Items gives Error of Duplicate Name on the Network! (AdRestore and ldp.exe) Meinolf Weber [MVP-DS] Active Directory 6 02-17-2010 05:09 AM
Duplicate Songs Trontron Windows Media Player 3 01-04-2010 03:50 PM
Are there supposed to be duplicate users in advance security setti David Windows Vista Administration 2 10-06-2007 05:20 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59