privileged dll in c# application
- From: "David Boswell" <dboswell@xxxxxxxxxxxxxxxx>
- Date: Wed, 22 Feb 2006 16:04:49 -0000
Hi,
I have been looking at an open source project as part of my University
Project involving smartphones. This project is implemented in embedded
Visual C++ which makes use of SetKMode (a privileged API call). To get this
application to run i must select a Privileged Certificate from the
Project->Settings menu and then the security tab. This certificate was
created using the TestCert_Privileged.pfx tool located in the following
directory C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Tools and
added to my Smartphone Orange SPV e200. This works correclty.
However i then wish to take some of the core functionality from this project
and encapsulate it as a dll to use within a c# application written with the
..NET Compact framework for Windows Mobile 2003. I created the dll with the
same privileged certificate as was needed for building and running the
application.
When i try to call the function within the dll it doen't work - i have used
the tool signcode (also in above directory) to use the same privileged
certificate as used for the building of the dll to sign the dll for use in
c#. After building i then use signcode to sign the .exe, again with the
same
certificate. Finally i deploy the application to my Smartphone and run it
from here since i have read in an article published by Microsoft on
Smartphone Security that if the application was run from the SDK (VS.NET
2003) that the default unprivileged certificate is used. The application
runs, however it appears that the function called from the dll cannot
perform
the privileged operations.
Please could you help me resolve this problem.
However i do not understand how the embedded visual c++ app works however
the c# app doesn't.
thanks in advance
David
.
- Prev by Date: Re: Registering a .NET assembly for COM interop access from an ASP page
- Next by Date: Connection Point from MTA to vb.Net
- Previous by thread: Share COM object with 1.1 and 2.0 Application Pools
- Next by thread: Connection Point from MTA to vb.Net
- Index(es):
Relevant Pages
|
Loading