Is there any difference of ClassGUIDs between in INF file and in IoRegiserDeviceInterface

Discussion in 'Windows Vista Drivers' started by Zhou, Jan 4, 2005.

  1. Zhou

    Zhou Guest

    In many DDK's samples, the ClassGUIDs are identical between in INF file and
    in the call of IoRegisterDeviceInterface. For example, bulltlp3, a smartcard
    reader driver, uses the ClassGUID SmartCardReader in bulltlp3.inf.
    At the same time, it calls IoRegisterDeviceInterface in AddDevice routine
    with SmartCardReaderGuid as input parameter.
    These two ClassGUIDs are identical.

    In terms of SetupDiXxxx, the ClassGUID in INF file is Device Setup Class,
    whereas the one in IoRegisterDeviceInterface is Device Interface Class.

    So I think that the ClassGUIDs in the two places MUST be identical.

    I make the above conclusion but I'm NOT sure. :(
    Anyone give me correct conclusion, Yes/No?
    Any idea is appreciated, thanks in advance.
    Zhou, Jan 4, 2005
    1. Advertisements

  2. the GUIDs should not be identical if you can help it. if you are using
    predefined interface GUIDs with predefined interface GUIDs, then you must
    use what is defined, but if they are under your own control, use 2 separate
    GUIDs. Many classes have different GUIDs; for instance, the keyboard class
    guid is different than the kebyoard interface guid.

    Doron Holan [MS], Jan 4, 2005
    1. Advertisements

  3. Zhou

    Zhou Guest

    Thanks for your help.


    Zhou, Jan 4, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.