CALLCONV (Compact 2013)

3/26/2014

This enumeration identifies the calling convention used by a method described in the METHODDATA structure.

Syntax

typedef enum tagCALLCONV {
  CC_CDECL = 1,
  CC_MSCPASCAL = 2,
  CC_PASCAL = CC_MSCPASCAL,
  CC_MACPASCAL = 3,
  CC_STDCALL = 4,
  CC_RESERVED = 5,
  CC_SYSCALL = 6,
  CC_MPWCDECL = 7,
  CC_MPWPASCAL = 8,
  CC_MAX = 9
} CALLCONV;

Elements

  • CC_CDECL
    Indicates that the Cdecl calling convention is used for a method.
  • CC_MSCPASCAL
    Indicates that the Mscpascal calling convention is used for a method.
  • CC_PASCAL
    Indicates that the Pascal calling convention is used for a method.
  • CC_MACPASCAL
    Indicates that the Macpascal calling convention is used for a method.
  • CC_STDCALL
    Indicates that the Stdcall calling convention is used for a method.
  • CC_RESERVED
    Reserved.
  • CC_SYSCALL
    Indicates that the Syscall calling convention is used for a method.
  • CC_MPWCDECL
    Indicates that the Mpwcdecl calling convention is used for a method.
  • CC_MPWPASCAL
    Indicates that the Mpwpascal calling convention is used for a method.
  • CC_MAX
    Indicates the end of the CALLCONV enumeration.

Remarks

On 16-bit Windows systems, functions implemented with the CC_CDECL calling convention cannot have a return type of float or double. This includes functions that retrieve a DATE type, which is a floating-point type.

Requirements

Header

oaidl.h

See Also

Reference

Automation Enumerations
METHODDATA