next up previous contents index
Next: 4.5 Source Issues Up: 4.4 Binary Issues Previous: 4.4.1 Interface Structure

4.4.2 Calling Conventions

The specific calling conventions used in a method call is also standardized by the COM specification but depends on the processor architecture. On the Intel x86 architecture, where different types of calling conventions abound, the standard calling conventions for COM interfaces are the stdcall conventions defined by Microsoft and used throughout the Win32 API. Note that these calling conventions generally do not match the default calling conventions of any particular C or C++ compiler, so implementors of COM interfaces must be careful to use the appropriate declarations. In the OSKit, the OSKIT_COMCALL macro can be used to declare functions and function pointers to use standard COM calling conventions, regardless of the compiler or processor architecture in use; see 4.6.1 for more details.



University of Utah Flux Research Group