From: Robert Levy [MS] on
Ahh, that's right. Check out "Why can't I use RAPI with my Windows Mobile
device?" in the Migration FAQ
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/migration_developers_faq.asp)
which explains the workaround (either modify the device's policy to
explicitly allow your DLL during installation or sign your DLL through
Mobile2Market)

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

"iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
news:3700920A-4D19-480F-9C99-C29F11CB15A2(a)microsoft.com...
> thanks for that Robert:
> Now i have tried to access PIM data using the POOM API and put it
> into a device side dll then try to do what Peter said to use RAPI to
> CERapiInvoke
> the routine in the dll, the problem is due to the new RAPI security policy
> i
> probably need to do some extra work to get my CERapiInvoke permitted on
> the
> device?
> do you have any information regarding this for my case? hopefully i don't
> need to send an application to the device and then change rapi security
> policy.
>
> thanks
>
>
> "Robert Levy [MS]" wrote:
>
>> You should only be accessing PIM data through the POOM APIs.
>>
>> RAPI currently does not have an EDB equivalent of it's CEDB APIs but
>> that's
>> definitely something we're looking to address in a future release.
>>
>> --
>> -Robert Levy
>> Program Manager, Windows Mobile Developer Experience
>> http://blogs.msdn.com/windowsmobile
>>
>> "iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
>> news:27820D02-2152-4073-B6EF-306515EB3252(a)microsoft.com...
>> > thanks Peter:
>> > my objective here will be to directly retrieve contacts database
>> > information
>> > from
>> > a desktop pc.
>> >
>> > I think first i need information about EDB and if i can use RAPI to
>> > get
>> > the pim.vol file is there any way to get contacts in the file?
>> >
>> > secondly is there any difference Microsoft made in the RAPI 2 interface
>> > to
>> > work with EDB?
>> >
>> > thanks very much
>> >
>> >
>> > "Peter Foot [MVP]" wrote:
>> >
>> >> The PIM databases are not only stored in a standalone volume, but are
>> >> also
>> >> an EDB (rather than CEDB) database. It doesn't appear from the
>> >> documentation
>> >> that the RAPI database methods cater for dealing with EDB. You may
>> >> need
>> >> to
>> >> write code which runs on the device side to interact with EDB or
>> >> better
>> >> still go through the proper POOM API and then interact with this using
>> >> rapi.
>> >>
>> >> Peter
>> >>
>> >> --
>> >> Peter Foot
>> >> Windows Embedded MVP
>> >> http://www.inthehand.com | http://www.peterfoot.net
>> >
>>
>>
>>


From: iistudio on
thanks again Robert:
thats basically what i have in mind. I am sorry to bother you once again as
I am
totally new to RAPI and windows CE programming.

my situation is we have the pocket pc phone, and we want to be able to
retrieve contact database information from the device to desktop pc.

I know that since WM5 the contact database has changed to EDB, and RAPI is
not capable of doing the job anymore. So POOM came in to help. what I hope to
archive is to initialize reading PIM from my desktop pc without going to the
phone device (you just need to put the phone onto cradle and use guest
connection in activesync).

so i am able to use RAPI put function to "PUT" my dll onto the phone device,
modify the device's policy to explicitly allow your DLL to be invoked my RAPI
will be ideal.

could you plz show me the steps of how to get this done? or do i have to
create a installation cab to install my dll on the device then during
installation change the devices metabase policy for my dll to work?

thanks very much


"Robert Levy [MS]" wrote:

> Ahh, that's right. Check out "Why can't I use RAPI with my Windows Mobile
> device?" in the Migration FAQ
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/migration_developers_faq.asp)
> which explains the workaround (either modify the device's policy to
> explicitly allow your DLL during installation or sign your DLL through
> Mobile2Market)
>
> --
> -Robert Levy
> Program Manager, Windows Mobile Developer Experience
> http://blogs.msdn.com/windowsmobile
>
> "iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
> news:3700920A-4D19-480F-9C99-C29F11CB15A2(a)microsoft.com...
> > thanks for that Robert:
> > Now i have tried to access PIM data using the POOM API and put it
> > into a device side dll then try to do what Peter said to use RAPI to
> > CERapiInvoke
> > the routine in the dll, the problem is due to the new RAPI security policy
> > i
> > probably need to do some extra work to get my CERapiInvoke permitted on
> > the
> > device?
> > do you have any information regarding this for my case? hopefully i don't
> > need to send an application to the device and then change rapi security
> > policy.
> >
> > thanks
> >
> >
> > "Robert Levy [MS]" wrote:
> >
> >> You should only be accessing PIM data through the POOM APIs.
> >>
> >> RAPI currently does not have an EDB equivalent of it's CEDB APIs but
> >> that's
> >> definitely something we're looking to address in a future release.
> >>
> >> --
> >> -Robert Levy
> >> Program Manager, Windows Mobile Developer Experience
> >> http://blogs.msdn.com/windowsmobile
> >>
> >> "iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
> >> news:27820D02-2152-4073-B6EF-306515EB3252(a)microsoft.com...
> >> > thanks Peter:
> >> > my objective here will be to directly retrieve contacts database
> >> > information
> >> > from
> >> > a desktop pc.
> >> >
> >> > I think first i need information about EDB and if i can use RAPI to
> >> > get
> >> > the pim.vol file is there any way to get contacts in the file?
> >> >
> >> > secondly is there any difference Microsoft made in the RAPI 2 interface
> >> > to
> >> > work with EDB?
> >> >
> >> > thanks very much
> >> >
> >> >
> >> > "Peter Foot [MVP]" wrote:
> >> >
> >> >> The PIM databases are not only stored in a standalone volume, but are
> >> >> also
> >> >> an EDB (rather than CEDB) database. It doesn't appear from the
> >> >> documentation
> >> >> that the RAPI database methods cater for dealing with EDB. You may
> >> >> need
> >> >> to
> >> >> write code which runs on the device side to interact with EDB or
> >> >> better
> >> >> still go through the proper POOM API and then interact with this using
> >> >> rapi.
> >> >>
> >> >> Peter
> >> >>
> >> >> --
> >> >> Peter Foot
> >> >> Windows Embedded MVP
> >> >> http://www.inthehand.com | http://www.peterfoot.net
> >> >
> >>
> >>
> >>
>
>
>
From: Robert Levy [MS] on
Haven't done this myself, but here's the approach I'd try...

1) Use RAPI to copy an EXE and a DLL to the device.
2) Use RAPI to launch that EXE. The user will get a security prompt before
the EXE is allowed to run.
3) Have the EXE call DMProcessConfigXML to change the metabase so that your
DLL is allowed to be RAPI-invoked.
4) Then your desktop app can RAPI-invoke the DLL on the device as you
please.

Note that for non-phone devices, the default security policy allows any DLL
to be RAPI invoked so steps 2/3 aren't necessary there.

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

"iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
news:000051AB-6808-457E-8336-ECC1A41A5A79(a)microsoft.com...
> thanks again Robert:
> thats basically what i have in mind. I am sorry to bother you once again
> as
> I am
> totally new to RAPI and windows CE programming.
>
> my situation is we have the pocket pc phone, and we want to be able to
> retrieve contact database information from the device to desktop pc.
>
> I know that since WM5 the contact database has changed to EDB, and RAPI is
> not capable of doing the job anymore. So POOM came in to help. what I hope
> to
> archive is to initialize reading PIM from my desktop pc without going to
> the
> phone device (you just need to put the phone onto cradle and use guest
> connection in activesync).
>
> so i am able to use RAPI put function to "PUT" my dll onto the phone
> device,
> modify the device's policy to explicitly allow your DLL to be invoked my
> RAPI
> will be ideal.
>
> could you plz show me the steps of how to get this done? or do i have to
> create a installation cab to install my dll on the device then during
> installation change the devices metabase policy for my dll to work?
>
> thanks very much
>
>
> "Robert Levy [MS]" wrote:
>
>> Ahh, that's right. Check out "Why can't I use RAPI with my Windows
>> Mobile
>> device?" in the Migration FAQ
>> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/migration_developers_faq.asp)
>> which explains the workaround (either modify the device's policy to
>> explicitly allow your DLL during installation or sign your DLL through
>> Mobile2Market)
>>
>> --
>> -Robert Levy
>> Program Manager, Windows Mobile Developer Experience
>> http://blogs.msdn.com/windowsmobile
>>
>> "iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
>> news:3700920A-4D19-480F-9C99-C29F11CB15A2(a)microsoft.com...
>> > thanks for that Robert:
>> > Now i have tried to access PIM data using the POOM API and put it
>> > into a device side dll then try to do what Peter said to use RAPI to
>> > CERapiInvoke
>> > the routine in the dll, the problem is due to the new RAPI security
>> > policy
>> > i
>> > probably need to do some extra work to get my CERapiInvoke permitted on
>> > the
>> > device?
>> > do you have any information regarding this for my case? hopefully i
>> > don't
>> > need to send an application to the device and then change rapi security
>> > policy.
>> >
>> > thanks
>> >
>> >
>> > "Robert Levy [MS]" wrote:
>> >
>> >> You should only be accessing PIM data through the POOM APIs.
>> >>
>> >> RAPI currently does not have an EDB equivalent of it's CEDB APIs but
>> >> that's
>> >> definitely something we're looking to address in a future release.
>> >>
>> >> --
>> >> -Robert Levy
>> >> Program Manager, Windows Mobile Developer Experience
>> >> http://blogs.msdn.com/windowsmobile
>> >>
>> >> "iistudio" <iistudio(a)discussions.microsoft.com> wrote in message
>> >> news:27820D02-2152-4073-B6EF-306515EB3252(a)microsoft.com...
>> >> > thanks Peter:
>> >> > my objective here will be to directly retrieve contacts database
>> >> > information
>> >> > from
>> >> > a desktop pc.
>> >> >
>> >> > I think first i need information about EDB and if i can use RAPI to
>> >> > get
>> >> > the pim.vol file is there any way to get contacts in the file?
>> >> >
>> >> > secondly is there any difference Microsoft made in the RAPI 2
>> >> > interface
>> >> > to
>> >> > work with EDB?
>> >> >
>> >> > thanks very much
>> >> >
>> >> >
>> >> > "Peter Foot [MVP]" wrote:
>> >> >
>> >> >> The PIM databases are not only stored in a standalone volume, but
>> >> >> are
>> >> >> also
>> >> >> an EDB (rather than CEDB) database. It doesn't appear from the
>> >> >> documentation
>> >> >> that the RAPI database methods cater for dealing with EDB. You may
>> >> >> need
>> >> >> to
>> >> >> write code which runs on the device side to interact with EDB or
>> >> >> better
>> >> >> still go through the proper POOM API and then interact with this
>> >> >> using
>> >> >> rapi.
>> >> >>
>> >> >> Peter
>> >> >>
>> >> >> --
>> >> >> Peter Foot
>> >> >> Windows Embedded MVP
>> >> >> http://www.inthehand.com | http://www.peterfoot.net
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>