For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > December 2005 > Re: CeOpenDatabase() for Smartphones









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: CeOpenDatabase() for Smartphones
Brian Cross [MS]

2005-12-08, 7:21 pm

What version of Windows Mobile are you using? I believe you need to
provision your device (using DMProcessConfigXML).
Try this msdn entry:
http://msdn.microsoft.com/library/d...eRapiInvoke.asp

toward the bottom it will explain how to enable and disable RAPI calls for a
DLL

--
Brian Cross
Software Design Engineer
Windows Mobile Developer Experience Team

This posting is provided "AS IS" with no warranties, and confers no rights.


"hfr" <hfr@discussions.microsoft.com> wrote in message
news:9922E0E5-24CE-49E7-8A88-1EB2A1722135@microsoft.com...
>I have already used CeOpenDatabase() etc. sucessfully for Pocket PC devices
> (RAPI and non-RAPI version of it). But the RAPI version for
> CeOpenDatabase()
> returns a "Access denied" (using CeGetLastError()) for Smartphones. Ist
> there
> a way to sign some assembly (using codesign.exe) in order to allow RAPI
> accessing DBs stored on a smartphone?
>
> Exists there an equivalent for CeOpenDatabase() etc. in the .NET CF?
>
> Kind Regards, hfr
>
>



Ahmed Smahi [MSFT]

2005-12-09, 7:23 pm

You will need to provision the device to enable RAPI access to the database
of your choice. While the article mentioned below is about CeRapiInvoke
security, it does not cover database security provisioning. It is also
important to ensure that you are able to provide a solution to your
customers that enables them to provision their device. I am emphasizing on
this point because in some instances, Operators could decide to block such
provisioning.

--
Ahmed Smahi [MSFT]
Test@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.

"Brian Cross [MS]" <bcross@online.microsoft.com> wrote in message
news:O%23H4pKF$FHA.2392@TK2MSFTNGP09.phx.gbl...
> What version of Windows Mobile are you using? I believe you need to
> provision your device (using DMProcessConfigXML).
> Try this msdn entry:
> http://msdn.microsoft.com/library/d...eRapiInvoke.asp
>
> toward the bottom it will explain how to enable and disable RAPI calls for
> a DLL
>
> --
> Brian Cross
> Software Design Engineer
> Windows Mobile Developer Experience Team
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "hfr" <hfr@discussions.microsoft.com> wrote in message
> news:9922E0E5-24CE-49E7-8A88-1EB2A1722135@microsoft.com...
>
>



hfr

2005-12-12, 7:20 pm

Thank you for your answers.

Ok, I have to write something like this:

<wap-provisioningdoc>
<characteristic type="Metabase">
<characteristic type="RAPI\full_path_to_dll">
<parm name="rw-access" value="3"/>
<parm name="access-role" value="152"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

Which DLL I have to use here in order to allow CeOpenDatabase() to do its
work? CeOpenDatabase() is implemented in rapi.lib(!) (exposed in rapi.h) but
MSDN does not say in which DLL it is...

rapisrv.exe, cedb.dll, ....?



"Ahmed Smahi [MSFT]" wrote:

> You will need to provision the device to enable RAPI access to the database
> of your choice. While the article mentioned below is about CeRapiInvoke
> security, it does not cover database security provisioning. It is also
> important to ensure that you are able to provide a solution to your
> customers that enables them to provision their device. I am emphasizing on
> this point because in some instances, Operators could decide to block such
> provisioning.
>
> --
> Ahmed Smahi [MSFT]
> Test@online.microsoft.com
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Brian Cross [MS]" <bcross@online.microsoft.com> wrote in message
> news:O%23H4pKF$FHA.2392@TK2MSFTNGP09.phx.gbl...
>
>
>

hfr

2005-12-14, 7:09 pm

What can I do in order to cover database security provisioning?

I used DMProcessConfigXML and

<wap-provisioningdoc>
<characteristic type="BrowserFavorite">
<characteristic type="MSN Search">
<parm name="URL" value="http://search.msn.com"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

as sample which works fine.

Which XML should I use for database security provisioning?

Thanks in advance, hfr



"Brian Cross [MS]" wrote:

> What version of Windows Mobile are you using? I believe you need to
> provision your device (using DMProcessConfigXML).
> Try this msdn entry:
> http://msdn.microsoft.com/library/d...eRapiInvoke.asp
>
> toward the bottom it will explain how to enable and disable RAPI calls for a
> DLL
>
> --
> Brian Cross
> Software Design Engineer
> Windows Mobile Developer Experience Team
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "hfr" <hfr@discussions.microsoft.com> wrote in message
> news:9922E0E5-24CE-49E7-8A88-1EB2A1722135@microsoft.com...
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com