Re: CryptAcquireContext Fails in Windows 98

From: Amit Rahul [MS] (arahul_at_online.microsoft.com)
Date: 05/28/04


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


Relevant Pages

  • Re: The handle is invalid error from CryptAcquireContext
    ... I am having the exact same ... fine except on one Windows 2003 Server where CryptAcquireContext ... > Windows 2003 Server, they say, after installing some of the Windows ...
    (microsoft.public.platformsdk.security)
  • Re: Cryptography
    ... We created CryptAcquireContext with a container name ... >It is working fine in Windows XP and Windows 2000. ... default providers. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: login security
    ... Failing that, did you create a password reset ... Rick Rogers aka "Nutcase" MS-MVP - Windows ... Three of the members have limited access, ...
    (microsoft.public.windowsxp.general)
  • Re: Booting XP Home Edition
    ... > Perhaps, in the process of failing, your power supply unit damaged some of ... > How to perform an in-place upgrade of Windows XP ... > have to reinstall your programs, ... > and repair all the glitches that the failing PSU might have caused. ...
    (microsoft.public.windowsxp.general)
  • Re: Slow startup after repair install of Windows Server 2003
    ... revealed that it was at fault and failing. ... My hardware RAID hung Windows ... Turn off the PnP O/S in the BIOS. ... > You may also want to consider a clean install of the O/S and just restore ...
    (microsoft.public.windows.server.setup)