Click here to get back home

rapi with windows mobile 5.0

 HomeNewsGroups | Search | About
 microsoft.public.pocketpc.activesync    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
rapi with windows mobile 5.0 beakesland@gmail.com 10-10-2005
Get Chitika Premium
Posted by beakesland@gmail.com on October 10, 2005, 8:04 am
Please log in for more thread options
Hello,

I posted this to microsoft.public.pocketpc.developer also but then
thought
that this may be a better place.

Question 1:
With rapi syncing to a new Dell AXIM x51v (Windows mobile conduit)
I am unable to use

CeMountDBVol(&foo, lpszWdbName,OPEN_ALWAYS)
It always returns fails and
CeGetLastError();
returns ERROR_INVALID_PARAMETER;

The same code works fine againts an emulator and fine on older versions

PPC 2003 etc. So im pretty sure its not actually invalid parameters.

Question 2:
When trying to use rapi2 I am getting unresolved external symbol
_CLSID_RAPI
and unresolved external symbol _IID_IRAPIDesktop. I am including all
the Lib files from the new windows mobile 5 activesyc directories.

Any ideas would be helpful.

Thanks,

Philip



Posted by Chris De Herrera on October 10, 2005, 9:44 am
Please log in for more thread options
Hi,
Windows Mobile 5.0 does support the function calls. See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5conRemoteAPIRAPIReference.asp
for an overview of RAPI in Windows Mobile 5.0.

For CeMountDBVol see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5lrfcemountdbvol.asp

I suggest checking the parameters to make sure they are correct.

--
Chris De Herrera
http://www.pocketpcfaq.com
http://www.tabletpctalk.com
http://www.pocketpctalk.com
http://www.mobilitytalk.com

> Hello,
>
> I posted this to microsoft.public.pocketpc.developer also but then
> thought
> that this may be a better place.
>
> Question 1:
> With rapi syncing to a new Dell AXIM x51v (Windows mobile conduit)
> I am unable to use
>
> CeMountDBVol(&foo, lpszWdbName,OPEN_ALWAYS)
> It always returns fails and
> CeGetLastError();
> returns ERROR_INVALID_PARAMETER;
>
> The same code works fine againts an emulator and fine on older versions
>
> PPC 2003 etc. So im pretty sure its not actually invalid parameters.
>
> Question 2:
> When trying to use rapi2 I am getting unresolved external symbol
> _CLSID_RAPI
> and unresolved external symbol _IID_IRAPIDesktop. I am including all
> the Lib files from the new windows mobile 5 activesyc directories.
>
> Any ideas would be helpful.
>
> Thanks,
>
> Philip
>




Posted by beakesland@gmail.com on October 10, 2005, 10:34 am
Please log in for more thread options
Hi Chris,

Thank you so much for you quick reply, before posting to this list I
reviewed the two web sites you refered to and checked that the
parameters I was passing were indeed correct, and tried many
combinations of parameters for the name etc.

With reference to the CeMountDBVol(&foo, lpszWdbName,OPEN_ALWAYS)
call,

What is very strange is that this works on all other versions of PPC
devices only windows mobile 5.0 devices fail. It works with the same
version of ActiveSync on ppc 2003 devices.

As for my second question, When trying to see if another version of
rapi would soved my problem (ie rapi2) that I read the following sites
but could not link (see below) based on the correct lib files for rapi
2.

Again thanks for anyone who may be able to point me in the correct
direction.

Philip

Chris De Herrera wrote:
> Hi,
> Windows Mobile 5.0 does support the function calls. See
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5conRemoteAPIRAPIReference.asp
> for an overview of RAPI in Windows Mobile 5.0.
>
> For CeMountDBVol see
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5lrfcemountdbvol.asp
>
> I suggest checking the parameters to make sure they are correct.
>
> --
> Chris De Herrera
> http://www.pocketpcfaq.com
> http://www.tabletpctalk.com
> http://www.pocketpctalk.com
> http://www.mobilitytalk.com
>
> > Hello,
> >
> > I posted this to microsoft.public.pocketpc.developer also but then
> > thought
> > that this may be a better place.
> >
> > Question 1:
> > With rapi syncing to a new Dell AXIM x51v (Windows mobile conduit)
> > I am unable to use
> >
> > CeMountDBVol(&foo, lpszWdbName,OPEN_ALWAYS)
> > It always returns fails and
> > CeGetLastError();
> > returns ERROR_INVALID_PARAMETER;
> >
> > The same code works fine againts an emulator and fine on older versions
> >
> > PPC 2003 etc. So im pretty sure its not actually invalid parameters.
> >
> > Question 2:
> > When trying to use rapi2 I am getting unresolved external symbol
> > _CLSID_RAPI
> > and unresolved external symbol _IID_IRAPIDesktop. I am including all
> > the Lib files from the new windows mobile 5 activesyc directories.
> >
> > Any ideas would be helpful.
> >
> > Thanks,
> >
> > Philip
> >



Posted by Chris De Herrera on October 10, 2005, 6:19 pm
Please log in for more thread options
Hi,
Have you tried the API call using ActiveSync 4.0 with an older device? Are
you sure that the GUID exists in a Windows Mobile 5.0 device?


--
Chris De Herrera
http://www.pocketpcfaq.com
http://www.tabletpctalk.com
http://www.pocketpctalk.com
http://www.mobilitytalk.com

> Hi Chris,
>
> Thank you so much for you quick reply, before posting to this list I
> reviewed the two web sites you refered to and checked that the
> parameters I was passing were indeed correct, and tried many
> combinations of parameters for the name etc.
>
> With reference to the CeMountDBVol(&foo, lpszWdbName,OPEN_ALWAYS)
> call,
>
> What is very strange is that this works on all other versions of PPC
> devices only windows mobile 5.0 devices fail. It works with the same
> version of ActiveSync on ppc 2003 devices.
>
> As for my second question, When trying to see if another version of
> rapi would soved my problem (ie rapi2) that I read the following sites
> but could not link (see below) based on the correct lib files for rapi
> 2.
>
> Again thanks for anyone who may be able to point me in the correct
> direction.
>
> Philip
>
> Chris De Herrera wrote:
>> Hi,
>> Windows Mobile 5.0 does support the function calls. See
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5conRemoteAPIRAPIReference.asp
>> for an overview of RAPI in Windows Mobile 5.0.
>>
>> For CeMountDBVol see
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5lrfcemountdbvol.asp
>>
>> I suggest checking the parameters to make sure they are correct.
>>
>> --
>> Chris De Herrera
>> http://www.pocketpcfaq.com
>> http://www.tabletpctalk.com
>> http://www.pocketpctalk.com
>> http://www.mobilitytalk.com
>>
>> > Hello,
>> >
>> > I posted this to microsoft.public.pocketpc.developer also but then
>> > thought
>> > that this may be a better place.
>> >
>> > Question 1:
>> > With rapi syncing to a new Dell AXIM x51v (Windows mobile conduit)
>> > I am unable to use
>> >
>> > CeMountDBVol(&foo, lpszWdbName,OPEN_ALWAYS)
>> > It always returns fails and
>> > CeGetLastError();
>> > returns ERROR_INVALID_PARAMETER;
>> >
>> > The same code works fine againts an emulator and fine on older versions
>> >
>> > PPC 2003 etc. So im pretty sure its not actually invalid parameters.
>> >
>> > Question 2:
>> > When trying to use rapi2 I am getting unresolved external symbol
>> > _CLSID_RAPI
>> > and unresolved external symbol _IID_IRAPIDesktop. I am including all
>> > the Lib files from the new windows mobile 5 activesyc directories.
>> >
>> > Any ideas would be helpful.
>> >
>> > Thanks,
>> >
>> > Philip
>> >
>




Posted by beakesland@gmail.com on October 11, 2005, 5:50 am
Please log in for more thread options
Chris,

Thanks again for you reply, yes, I have the same code running against a
dell x50v (ppc 2003v2) and the same activesync with out a problem.

As for the GUID, CeMountDBVol with OPEN_ALWAYS will create the volume
if it didnt extist, I have also tried without an existing volume and
with one.

The GUID is a returned [out] param from the function call.

Again thanks for responding,
Any ideas are welcome.
Some thoughts I had were that it was a security issue. but this is not
really covered as a call from rapi, only from device itself. also there
does not seem to be a way to say that a rapi program to be allowed to
mount a volume, only to connect to a dll. This is what brought me to
my second question, thinking that rapi2 may give a better error instead
of invalid_param.

Philip



Similar ThreadsPosted
RAPI being block buy Windows mobile Security model? November 20, 2007, 10:17 am
Windows Mobile 5.0 does not connect to Windows Mobile Device Centr July 25, 2007, 8:58 pm
Windows Mobile 5 and Windows Mobile 2003SE sync to same PC? April 11, 2006, 6:03 am
WMDC & RAPI.DLL March 30, 2007, 3:03 am
RAPI Over ActiveSync November 8, 2007, 2:48 pm
ActiveSync and RAPI February 27, 2008, 7:30 pm
WM 5.0 RAPI Rights question October 12, 2005, 7:16 pm
RAPI error using AS4 to communicate with WM5 October 21, 2005, 9:04 am
RAPI CeGetDiskFreeSpaceEx with WM2003 August 29, 2006, 9:44 pm
RAPI only install of ActiveSync 4.5 March 18, 2008, 1:31 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap