Archive: Detect if PDA connected msg box if not


Detect if PDA connected msg box if not
I'm trying to work out how to find out if theres a PDA connected. The first attempted connection to the PDA is as below:


${PPC-registry::CeRapiInit} $R0

${If} $R0 == '-1'
MessageBox MB_OK 'Remote device connection failed.$\n$\n\ Please reSync device and try again'
${ElseIf} $R0 == '0'
; MessageBox MB_OK 'Connection Success'
goto CheckdotnetCFVersion
${EndIf}


Should I be making sure that there is a PDA there before I try to initiate rapi? And if so, how?
Cheers

whoops, think i just worked it out

had to use


${PPC-registry::CeRapiInitEx} $R0

instead, it tries to initiate, and times out at 3 seconds if it doesn't succeed