Listing 2 Marking a parameter with [ref]
typedef struct SOMESTRUCT { int i; short s; } SOMESTRUCT; interface IOther { HRESULT TellSOMESTRUCT([in] int i, [in] short s); } interface IInterface { HRESULT NonNullMethod( [in, ref] SOMESTRUCT *pss, [in] IOther *pii2); }