Results 1 to 2 of 2

Thread: Would like to call RegisterDeviceNotification()

  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Would like to call RegisterDeviceNotification()

    Greetings,

    I'm currently investigating the use of QTService component and/or creating a QT GUI application. The problem is that I need to call RegisterDeviceNotification() to be notified when a device is either added or removed (see http://msdn.microsoft.com/en-us/library/aa363431.aspx for more info). The problem is that I can't determine how to access the window handle or the service status handle. I fully realize that I'll end up with a windows-only app, but that's OK. I just really need to handle the WM_DEVICECHANGE notifications.

    Thanks in advance!
    jim

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Would like to call RegisterDeviceNotification()


  3. The following user says thank you to jacek for this useful post:

    AlphaWolfXV (17th April 2009)

Similar Threads

  1. call the other dialog through dialog
    By narumi in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2008, 09:30
  2. Replies: 1
    Last Post: 28th May 2008, 16:52
  3. how to call parent widget's event ?
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2007, 12:39
  4. call bash/terminal command with QT
    By myta212 in forum Newbie
    Replies: 1
    Last Post: 13th November 2006, 15:38
  5. why cant i call setGeometry
    By freegnu in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 04:59

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.