privileged dll in c# application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Cant access unmanaged C++ DLL under WM5
    ... Reading more posts on the certificate problems, ... message is more about my app not being signed vs. some not-found component. ... And it only bothers the OS because I'm trying to load a dll - not that the ... Could the problem be more about the trusted certificate part rather ...
    (microsoft.public.pocketpc.developer)
  • c++ privileged dll in c# application
    ... application to run i must select a Privileged Certificate from the ... I created the dll with the ... Finally i deploy the application to my Smartphone and run it ... However i do not understand how the embedded visual c++ app works however ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Programmatically Signing DLL
    ... key on it and sign a .DLL before it goes into production. ... > Dim Signer, SignedCode ... What kind of certificate do we need to buy to allow programmatic ... signing and validation of a DLL using VC++. ...
    (microsoft.public.security)
  • Re: Hi, Any work around for windows mobile 6 dynamic loading warni
    ... xml file is named _setup.xml (ensure you include the underscrore as the ... Then included the dll during runtime. ... your only option is to purchase a code signing certificate from the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Ask the Experts Help
    ... I didn't mention the 3rd party dll is also unmanaged C++. ... chktrust.exe to check an "assembly's" certificate, but only in my VS 2003 ... > the target dll that triggers the error message. ... > b) if I just sign my test app would it then be able to use the target dll? ...
    (microsoft.public.pocketpc.developer)