G
Glyn Meek
We are using the Code Project routines for generating GUIDs on the Pocket
PC.
http://www.codeproject.com/netcf/PPCGuidGen.asp
In an earlier posting, I mentioned that we occasionally get an error message
"Failed to acquire cryptography handle."
....and it turns out that this is generated out of the 'CodeProject' NewGuid
routine, by a piece of code that reads...
If Not WinApi.CryptAcquireContext(hCryptProv, Nothing, Nothing, _
WinApi.PROV_RSA_FULL, WinApi.CRYPT_VERIFYCONTEXT) Then
Throw New SystemException( "Failed to acquire cryptography handle.")
End If
Can anyone tell me under what circumstances the CryptAcquireContext routine
would fail and generate this error? I have received one response that
mentions that the DeKlarit GUID code had a similar error, with a 'fix'
mentioned, but the code is significantly different enough that it doesn't
apply to the 'CodeProject' stuff. Does anyone know if there is a later
version of the CodeProject code that has fixed this, or if any GUID code is
better than any other?
thanks
Glyn Meek
PC.
http://www.codeproject.com/netcf/PPCGuidGen.asp
In an earlier posting, I mentioned that we occasionally get an error message
"Failed to acquire cryptography handle."
....and it turns out that this is generated out of the 'CodeProject' NewGuid
routine, by a piece of code that reads...
If Not WinApi.CryptAcquireContext(hCryptProv, Nothing, Nothing, _
WinApi.PROV_RSA_FULL, WinApi.CRYPT_VERIFYCONTEXT) Then
Throw New SystemException( "Failed to acquire cryptography handle.")
End If
Can anyone tell me under what circumstances the CryptAcquireContext routine
would fail and generate this error? I have received one response that
mentions that the DeKlarit GUID code had a similar error, with a 'fix'
mentioned, but the code is significantly different enough that it doesn't
apply to the 'CodeProject' stuff. Does anyone know if there is a later
version of the CodeProject code that has fixed this, or if any GUID code is
better than any other?
thanks
Glyn Meek