Memory Management ACF Attributes

Use these attributes to manage memory from the client side:

Attribute Usage
allocate Specifies the way the client application and stub allocate and release memory for pointers. This attribute is particularly useful when you want certain pointer structures to remain accessible to the server application after the remote procedure call returns to the client. You can also use the allocate attribute to direct the stub to compute the size of all memory referenced through the pointer of the specified type and to make a single call to midl_user_allocate.
byte_count Enables you to create a persistent, contiguous block of memory that can be reused over multiple remote procedure calls. This frees the client application from the overhead of repeatedly allocating and releasing memory that may include multiple pointers and other complex data structures.
enable_allocate Specifies that the server stub code should enable the stub memory-management environment.