Results 1 to 4 of 4

Thread: Not solved

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    48
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Not solved

    Hi ..

    I am using Qt with win32..

    I can able to get notified on new device insertion and removal using DBT_DEVTYP_DEVICEINTERFACE

    if ( DBT_DEVICEARRIVAL == wParam || DBT_DEVICEREMOVECOMPLETE == wParam )
    {
    PDEV_BROADCAST_HDR pHdr = ( PDEV_BROADCAST_HDR )lParam;

    PDEV_BROADCAST_DEVICEINTERFACE pDevInf;

    PDEV_BROADCAST_VOLUME pDevVolume = reinterpret_cast<PDEV_BROADCAST_VOLUME>(lParam);

    switch( pHdr->dbch_devicetype )
    {
    case DBT_DEVTYP_DEVICEINTERFACE:
    pDevInf = ( PDEV_BROADCAST_DEVICEINTERFACE )pHdr;
    updateDevice( pDevInf, wParam);
    break;
    }
    }
    anybody please tell me how can i get the drive information ( G:/ ) for the above notication
    Last edited by newb; 28th June 2010 at 11:22.

Similar Threads

  1. How to get the Drive letter
    By newb in forum Qt Programming
    Replies: 10
    Last Post: 10th June 2010, 13:59
  2. Qt Designer Working from network drive
    By list@ceepro.dk in forum Qt Tools
    Replies: 1
    Last Post: 9th April 2010, 19:26
  3. How to get system drive?
    By Raccoon29 in forum General Programming
    Replies: 2
    Last Post: 23rd November 2008, 14:13
  4. Need help on mount nfs drive in Qt
    By tho97 in forum Qt Programming
    Replies: 3
    Last Post: 28th November 2007, 19:26
  5. problem of how to get drive
    By jyoti in forum General Programming
    Replies: 6
    Last Post: 30th November 2006, 14:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.