Re: CryptAcquireContext Fails in Windows 98
From: Amit Rahul [MS] (arahul_at_online.microsoft.com)
Date: 05/28/04
- Next message: Amit Rahul [MS]: "Re: how to use Cryto API"
- Previous message: Amit Rahul [MS]: "Re: DPAPI protection credentials used with smartcard logons"
- In reply to: Agnihotri: "CryptAcquireContext Fails in Windows 98"
- Next in thread: Agnihotri: "Re: CryptAcquireContext Fails in Windows 98"
- Reply: Agnihotri: "Re: CryptAcquireContext Fails in Windows 98"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 27 May 2004 17:47:24 -0700
Do you have high encryption pack installed on windows 98? MS_ENHANCED_PROV
is not available by default on Win98. This could be the reason why
CryptAcquireContext is failing there.
--
Thanks,
Amit Rahul [MS]
This posting is provided "AS IS" with no warranties, and confers no rights.
"Agnihotri" <anonymous@discussions.microsoft.com> wrote in message
news:92719F73-BC9B-4D75-BB06-8679A20F85E0@microsoft.com...
> Hi,
> I have made the ATL COM component which uses CriptoAPI. The component is
developed in Windows 2000 and is functional.
> When i use the same component in Windows 98 the CriptoAPI function
"CryptAcquireContext" fails???
> I have used the function is following way
>
> if(!CryptAcquireContext(&hCryptProv,NULL, MS_ENHANCED_PROV, PROV_RSA_FULL,
0))
> {
> if(!CryptAcquireContext(&hCryptProv,NULL, MS_ENHANCED_PROV,
PROV_RSA_FULL, CRYPT_NEWKEYSET))
> {
> return E_FAIL;
> }
> }
>
> Please help me out.....
> Thank You
- Next message: Amit Rahul [MS]: "Re: how to use Cryto API"
- Previous message: Amit Rahul [MS]: "Re: DPAPI protection credentials used with smartcard logons"
- In reply to: Agnihotri: "CryptAcquireContext Fails in Windows 98"
- Next in thread: Agnihotri: "Re: CryptAcquireContext Fails in Windows 98"
- Reply: Agnihotri: "Re: CryptAcquireContext Fails in Windows 98"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|