Re: classes/ interface/device-setup/etc

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Mike Fochtman" <MikeFochtman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F09FADF8-8300-49DE-ABD0-CC96ABEBB893@xxxxxxxxxxxxxxxx
> A question or two about these classes.
>
> I have a very unique device that needs an interface class of its own.
> (really, it doesn't fit any system-defined ones). So, I have a
> [InterfaceInstall32] section in my .inf file. I also have a call to
> IoRegisterDeviceInterface() in my InitDevice() routine. Or is this
> redundant? They register the same GUID.
>
> Then the documents talk about a device setup class. This is in the
> [Version] section of the .inf and has yet another GUID? Since it isn't
one
> of the system-defined devices, I assume this is also needed. But I don't
> need a CoInstaller because there are no special properties or functions
> needed.
>
> And where does the [ClassInstall32] section of the .inf file fit into
this?
> At times in the ddk I think I start to sort these all out, then it gets
all
> blurry again.
>
> Non system-defined device, simple interface, just want
> Create/Close/Read/Write. But 'device setup class', 'interface class' and
so
> many GUIDS...
>
> Thanks for any help in sorting these out.


If I make device class i define ne guid.
For my device in version I use this guid.

I make section for install this class
[ClassInstall]
AddReg=_AddReg_ClassInstall

; install class, Windows 2000:
[ClassInstall32]
AddReg=_AddReg_ClassInstall

; registry entries required for class
[_AddReg_ClassInstall]
HKR,,,,"%S_DeviceClassDisplayName%"
HKR,,Icon,,"-20"


this set display name of class and icon - As icon I use standard usb icon.


.



Relevant Pages

  • Re: Prevent ZoneAlarm from displaying the system tray icon
    ... I do not want the ZoneAlarm icon sitting there, ... I do not want the interface to run unless I ... > meets my security needs better than the XP built in firewall. ... If you have software which is making unwanted outbound connections then ...
    (comp.security.firewalls)
  • Re: limit of lines?
    ... [GUID] ... IValueType = interface ... property FormatString: string ... This brings back 5 cells for the Order and 5 cells for each of the related ...
    (borland.public.delphi.non-technical)
  • Re: classes/ interface/device-setup/etc
    ... the guid in is the setup class, typically an INF will have nothing ... >>> I have a very unique device that needs an interface class of its own. ... They register the same GUID. ...
    (microsoft.public.development.device.drivers)
  • Re: IConnectionPointContainer & C#
    ... interface proxy marshalling, and I'm not surprized that something is getting ... void IConnectionPointContainer.FindConnectionPoint(ref Guid riid, out ... IConnectionPoint ppCP) ... But the COM client that gets this IConnectionPoint ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: use createfile to access usb device
    ... GUID_DEVCLAS_USB is a device class. ... Not all USB devices have the same interface, ... If you don't know the device interface GUID for the ... >> SetupDiEnumDeviceInterfaces() and SetupDiGetDeviceInterfaceDetail. ...
    (microsoft.public.development.device.drivers)