locked
Device Notification not received !

    Question

  •  I have a Win32 Service App, which calls the API RegisterDeviceNotification(h,&p,DEVICE_NOTIFY_SERVICE_HANDLE); 

    to handle the DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events. 

    This works fine on Win8 32bits version but not on 64bits version.

    Will Win8 solve this problem or should I porting my App to 64bits?

     

     


    Alfredo
    Wednesday, September 28, 2011 5:15 AM

All replies

  • Hello Alfredo Uen,

    This thread was created in the Windows Developer Preview forum; the Microsoft Moderation team has moved this thread to the  Building Apps with C++ for Windows Developer Preview.


    Marilyn
    Wednesday, October 5, 2011 8:38 PM
  • Hi Alfredo,

    Is this a 32 bit service and when you install and run this 32 bit service on Windows 8 x64, your service does not receive the events?

    Have you tried recompiling the app at a 64 bit app and tested on the 64 bit version of Windows?

    thanks

    Frank

    Thursday, October 13, 2011 9:37 PM
    Moderator
  • Hi Frank

    Yes, my app is the service of 32 bit version.

    When compiling into 64 bit service app, It works fine on 64 bit Windows 8.


    Alfredo
    Friday, October 14, 2011 7:32 AM