CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2003
    Posts
    2

    Question Problem with USB class class installers and/or co-installers under Wind

    Class installer code works with Vista and Windows XP. Not Windows 7.
    Call to SetupDiGetDeviceInstanceId fails (bad parameter) when invoked when processing DIF_DESTROYPRIVATEDATA (curious implementation, I did not write this). Attempting to trace with message boxes hangs the installer.
    I experimented with a call to SetupDiGetDeviceInstanceId when processing DIF_NEWDEVICEWIZARD_FINISHINSTALL hangs the installation (consistant with message boxes). Forcing asserts does not invoke the debugger.

  2. #2
    Join Date
    Aug 2003
    Posts
    2

    Re: Problem with USB class class installers and/or co-installers under Wind

    Re-working to model after the example code at:
    http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
    I can get the auto-configuration dialog to display.
    Dialogs must be displayed when processing
    DIF_FINISHINSTALL_ACTION

    DI_FLAGSEX_FINISHINSTALL_ACTION flag must be assigned as in example when processing
    DIF_NEWDEVICEWIZARD_FINISHINSTALL

    #define _SETUPAPI_VER _WIN32_WINNT_LONGHORN
    just ahead of
    #include <setupapi.h>
    to get DI_FLAGSEX_FINISHINSTALL_ACTION defined

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured