async_uuid

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Specifies the UUID that directs the MIDL compiler to define both synchronous and asynchronous versions of a COM interface.

  
      [async_uuid (  
   uuid  
)]  

Parameters

uuid
A UUID that identifies the version of the interface.

The async_uuid C++ attribute has the same functionality as the async_uuid MIDL attribute.

// cpp_attr_ref_async_uuid.cpp  
// compile with: /LD  
#include <Windows.h>  
[module(name="Test")];  
[object, uuid("9e66a290-4365-11d2-a997-00c04fa37ddb"),   
async_uuid("e8583106-38fd-487e-912e-4fc8645c677e")]  
__interface ICustom {  
   HRESULT Custom([in] long l, [out, retval] long *pLong);  
};  

Attribute Context

Applies tointerface
RepeatableNo
Required attributesNone
Invalid attributesdual, dispinterface

For more information about the attribute contexts, see Attribute Contexts.

IDL Attributes
Interface Attributes
Attributes Samples

Show: