locked
Vista Services Session 0 USB problem RRS feed

  • Question

  • Hi all.



    I created a services that transfer data to/from the USB and then
    forwards it to a user app through named pipes. The service runs
    smoothly on Win XP and if i run it as an app in Vista is works OK.



    However when I start the services I can't read/write to the USB, I am
    always getting an ERROR_IO_PENDING error. I can connect to the USB no
    problem but I can't access to it.



    I am also using the OVERLAPPED structure and the waiting for the hEvent
    to be signaled, but it never does. Maybe the way I am createing the
    event should be different for sesssion 0?



    overlappedRead.hEvent = ::CreateEvent(NULL,FALSE,FALSE,NULL)



    and then waiting for it



    WaitForSingleObject(overlappedRead.hEvent, PAUSE);


    thanks for your help guys
    Stb

    Wednesday, July 30, 2008 4:07 PM