Using RAPI from a Windows Service

Last post 07-21-2008 8:43 by Elaine. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-19-2008 19:21

    • Elaine
    • Top 200 Contributor
    • Joined on 06-19-2008
    • Posts 3

    Using RAPI from a Windows Service

    Is there something that I can do in order to use RAPI with a Windows service?  I'm using ActiveSync 4.5, VS 2008 & 3.5 .NET Framework.  The same code will work when placed on a Windows form, but not from the service.  There appears to be a timeout and then a false return for m_rapi.DevicePresent.

    RAPI m_rapi = new RAPI();  <-- very long wait

    if (m_rapi.DevicePresent)  <-- always false after the return from service app

    {

    }

  • 07-18-2008 14:17 In reply to

    • YFCF
    • Top 500 Contributor
    • Joined on 07-18-2008
    • Posts 2

    Re: Using RAPI from a Windows Service

    I have the same problem, do you have a solution yet?

  • 07-21-2008 8:43 In reply to

    • Elaine
    • Top 200 Contributor
    • Joined on 06-19-2008
    • Posts 3

    Re: Using RAPI from a Windows Service

    No.  We were never able to get this to work from a service.  What we ended up doing was sending the file using a socket connection that was already being used by the handheld in order to communicate with the service. 

Page 1 of 1 (3 items)