Share via


Calling Conventions and Parameters

The helper routine's prototype is:

#if defined(__cplusplus)
extern "C"
#endif
FARPROC WINAPI
__delayLoadHelper(
    PCImgDelayDescr pidd,
    FARPROC *       ppfnIATEntry
    );

The calling convention is __stdcall and it returns a function pointer. The type of the return value is not relevant, so FARPROC is used. Also note that this function has C linkage. The parameters are a pointer to a const ImgDelayDescr and a pointer to the particular IAT entry to update. The helper routine needs to store the same value that it will be returning into this location.