void

void function (parameter-list);
return-type function(void);
typedef [context_handle] void * context-handle-type;
return-type function (...[context_handle] void * * context-handle-type...);

function
Specifies the name of the remote procedure.
parameter-list
Specifies the list of parameters passed to the function along with the associated parameter types and parameter attributes.
return-type
Specifies the name of the type returned by the function.
context-handle-type
Specifies the name of the type that takes the context_handle attribute.

Examples

void VoidFunc1(void); 
HRESULT VoidFunc2([in, out] short s1); 
typedef [context_handle] void * MY_CX_HNDL_TYPE; 
HRESULT InitHandle([out] MY_CX_HNDL_TYPE * ppCxHndl); 
 

Remarks

The base type void indicates a procedure with no arguments or a procedure that does not return a result value.

The pointer type void *, which in C describes a generic pointer that can be cast to represent any pointer type, is limited in MIDL to its use with the context_handle keyword.

See Also

base_types, context_handle, IDL