STDMETHOD

Top  Previous  Next

Syntax

STDMETHOD name(paramlist)

Description

Declares a COM method in an interface.

Parameters

paramlist - Comma separated list of parameters in the format of variable as type or variable:type.

Return value

None

Remarks

A method in a COM object is actually a function. The standard return type for all COM methods is an HRESULT which is a UINT value. The method declaration follows the same parameter list format as the DECLARE statement

See Also: INTERFACE, ENDINTERFACE, SET_INTERFACE, DEFINE_GUID, DECLARE

Example usage

INTERFACE IUnknown
    STDMETHOD QueryInterface(riid as POINTER, ppvObj as POINTER),INT
    STDMETHOD AddRef(),INT
    STDMETHOD Release(),INT
ENDINTERFACE