locked
Windows Mobile newbie help required: WMDC and ActiveSynch compatibility with RAPI.dll RRS feed

  • Question

  • Forgive me if I'm posting this in an incorrect forum.

    I have a WinMob 6 Professional device running my application that is happily working for clients.

    We have a desktop app that up and downloads data to the device and again that works correctly for me using both the emulator and the PDA.  I have just been informed that some clients are having problems with part of the desktop app and it is believed that it is duw to them running off Vista.  The majority of clients use XP and are working fine.

    I have just done some prepatory investigation and understand that whilst RAPI if fine with both ActiveSync and WMDC, ActiveSync is not compatible with Vista.  Therefore I think the problem lies with....

    rapi.ActiveSync.ConnectNow();

    My thought is to System.Environment to determine the op system and then have an equivalent instruction for the VISTA users.

    1. Does this sound reasonable?

    2. What would be the eqivalent for WMDC?  I can't seem to find anything.

    ---------

    Windows Mobile 6 Professional devices - I don't know the exact PDA version as I am work from home on the emulator.

    Microsoft CE

    Vista and XP - sorry, once again nothing more detailed as it's running at multiple client sites

    Visual Studio 8

    The RAPI is wrapped in OpenNETCF

    Apologies for the lack of detail version info.

    --------

     

    Many thanks

     

    • Edited by Crass1968 Tuesday, March 30, 2010 1:52 PM Incorrect acronym
    Tuesday, March 30, 2010 1:35 PM

Answers

  • Hi Crass1968,

    Since you are asking OpennetCF, which is 3rd party component, I suggest you post it on OpennetCF forum, where you can get better reply.

    http://community.opennetcf.com/forums/23.aspx

     

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, April 1, 2010 3:26 AM

All replies

  • Hi Crass1968,

    Since you are asking OpennetCF, which is 3rd party component, I suggest you post it on OpennetCF forum, where you can get better reply.

    http://community.opennetcf.com/forums/23.aspx

     

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, April 1, 2010 3:26 AM
  • sorry to revive an old thread, but this answer is unacceptable.  the question is not about opennetcf and the opennetcf guys cannot answer this question.

    the question is: what is the vista/win7/WMDC equivalent to Rapi and IDccMan?

    in XP/ActiveSync:

    <DllImport("rapi.dll", CharSet:=CharSet.Unicode)> _
    Friend Shared Function CeRapiInitEx(<MarshalAs(UnmanagedType.Struct)> ByRef pRapiInit As RAPIINIT) As Integer
    End Function

    <DllImport("rapi.dll", CharSet:=CharSet.Unicode)> _
    Friend Shared Function CeRapiInit() As Integer
    End Function

    [EDIT]

    also:

    ''' <summary>
    ''' This Interface is used to get all the methods available in the IDccMan. with the help of
    ''' this interface we can register / deregister the IDccManSink.
    ''' </summary>
    <ComImport(), Guid("A7B88841-A812-11cf-8011-00A0C90A8F78"), _
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
    Public Interface IDccMan
        Function Advise(ByVal pDccSink As IDccManSink, ByRef dwContext As Int32) As Int32
        Function Unadvise(ByVal dwContext As Int32) As Int32
        Sub ShowCommSettings()
        Sub AutoconnectEnable()
        Sub AutoconnectDisable()
        Sub ConnectNow()
        Sub DisconnectNow()
        Sub SetIconDataTransferring()
        Sub SetIconNoDataTransferring()
        Sub SetIconError()
    End Interface
    ''' <summary>
    ''' This Interface is used to get all the methods available in the IDccManSink.
    ''' </summary>
    <Guid("A7B88840-A812-11cf-8011-00A0C90A8F78"), _
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
    Public Interface IDccManSink
        <PreserveSig()> Function OnLogIpAddr(<InAttribute()> ByVal dwIpAddr As Int32) As Int32
        <PreserveSig()> Function OnLogTerminated() As Int32
        <PreserveSig()> Function OnLogActive() As Int32
        <PreserveSig()> Function OnLogInactive() As Int32
        <PreserveSig()> Function OnLogAnswered() As Int32
        <PreserveSig()> Function OnLogListen() As Int32
        <PreserveSig()> Function OnLogDisconnection() As Int32
        <PreserveSig()> Function OnLogError() As Int32
    End Interface

    [END EDIT]

    this works just fine.  using this in vista/win7 with WMDC, it does not work.

    So, what is the new way to communicate with mobile devices?


    the real JeZteR
    Check out my Blog: Titan Blog
    Check my unanswered questions: JeZteR's Unanswered Questions


    • Edited by JeZteRicp Thursday, January 10, 2013 11:46 PM
    Thursday, January 10, 2013 9:58 PM