PC Review


Reply
Thread Tools Rate Thread

Crypto failes on Windows Mobile 5

 
 
=?Utf-8?B?ZHBjYmFidQ==?=
Guest
Posts: n/a
 
      3rd Oct 2005
The below code was working fine on PPC2000, 2002 and 2003 versions but
stopped working with Windows Mobile 5. I get CryptAcquireContext Failed
Exception.

Relevant sections of the code are below.

***
Private Const CryptDll As String = "coredll.dll"


<DllImport(CryptDll)> _
Public Shared Function CryptAcquireContext( _
ByRef phProv As IntPtr, ByVal pszContainer As String, _
ByVal pszProvider As String, ByVal dwProvType As Integer, _
ByVal dwFlags As Integer) As Boolean
End Function

***

If Not WinApi.CryptAcquireContext(hProv, Nothing, WinApi.MS_DEF_PROV,
WinApi.PROV_RSA_FULL, WinApi.CRYPT_VERIFYCONTEXT) Then
Failed("CryptAcquireContext")
End If

***

Thanks for any help or insight someone can provide
DPC

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Palm Treo 700wx/Windows Mobile 5/Windows Vista Home Premiumx86/Window Mobile Device Center 6.1/Bluetooth Connection Issues SthrnDixieCwgrl Windows Vista General Discussion 1 4th Sep 2008 08:40 PM
Palm Treo 700wx/Windows Mobile 5/Windows Vista Home Premium x86/Window Mobile Device Center 6.1/Bluetooth Connection Issues* SthrnDixieCwgrl Windows Vista General Discussion 0 7th May 2008 01:27 AM
SP2 - 16 bit Windows Subsystem failes =?Utf-8?B?UXVlbnRpbkhv?= Windows XP Help 4 27th Sep 2004 02:17 AM
Rekeying failes on Windows XP Monear Jalal Windows XP Security 0 25th Feb 2004 03:08 AM
Windows shutting down crypto svc. Richard Mayo Windows XP General 5 27th Dec 2003 03:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:53 PM.