Re: Error while enrolling a digital certificate with our custom CSP

From: Doug Barlow (soft_pedal_at_hotmail.com)
Date: 12/28/04


Date: Tue, 28 Dec 2004 18:17:45 GMT

All CSP entry points should be declared using the "WINAPI" calling
convention. For example,

EXTERN_C BOOL WINAPI
CPAcquireContext(...)

Doug Barlow
The Soft Pedal Shop
CSP Design & Development Consulting
http://www.SoftPedal.net

-- 
"shiva" <shiva@discussions.microsoft.com> wrote in message 
news:48F1E417-70C4-4F7B-860E-204CA7DEC1A2@microsoft.com...
>I am involved in Custom CSP creation... and I need to be clarified
> i had succesfully created the my csp.dll and registered that successfully 
> in
> the registry.
> when iam trying to enroll a digital certificate using that custom csp iam
> getting the follwing error
>
> DEBUG ERROR!
>
> Program:c:\Program Files\InternetExplorer\iexplore.exe
> Module:
> File:i386\chkesp.c
> Line:42
>
> The Value of ESP was not properly saved across a function call .This is
> usually a result of calling a function declared with one calling 
> convention
> with a function pointer declared with a different calling convention
>
> when i ignore this error it showing
>
> Error:5
>
> Please help in this to resolve
>
>
>
> 


Relevant Pages

  • Re: Mixed stdcall and cdecl code
    ... >> convention. ... I link to a 3rd party static library that apparently uses the ... >> errors from the linker until I changed my project settings from stdcall ... The 3rd party did not explicitly declare a calling convention in ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: moving data from one place to another in a text file
    ... """Calling DLL's under Windows ... the Pascal convention. ... used by a DLL just try one. ... that we're calling 'routine1' which expects a number as its first ...
    (comp.lang.cobol)
  • Re: pipe(2) calling convention: why?
    ... which uses a generic calling convention to implement pipe. ... we have one syscall and ... some arch-dependend wrappers in the libc. ...
    (freebsd-arch)
  • Re: Problems calling a function in a DLL
    ... The typedef defines a poitner to function using __stdcall calling ... convention. ... unsigned int dataSize, ...
    (microsoft.public.vc.language)
  • Re: x86 Stack Confusion
    ... >> How can you claim there is such a thing as the "C calling ... >> convention" when C compilers run on hundreds of different ... I don't see any mention of this in the C89 draft. ... Regards, Grumble ...
    (comp.lang.asm.x86)