VMS Help DCE_RPC, Application Routines, rpc_sm_swap_client_alloc_free *Conan The Librarian (sorry for the slow response - running on an old VAX) |
NAME rpc_sm_swap_client_alloc_free - Exchanges the current memory allocation and freeing mechanism used by the client stubs with one supplied by the client SYNOPSIS #include <rpc.h> void rpc_sm_swap_client_alloc_free ( idl_void_p_t (*p_allocate) (unsigned long size), void (*p_free) (idl_void_p_t ptr), idl_void_p_t (**p_p_old_allocate) (unsigned long size), void (**p_p_old_free) (idl_void_p_t ptr), unsigned32 *status ); PARAMETERS Input p_allocate Specifies a new memory allocation routine. p_free Specifies a new memory free routine. Output p_p_old_allocate Returns the memory allocation routine in use before the call to this routine. p_p_old_free Returns the memory free routine in use before the call to this routine. status Returns the status code from this routine. This status code indicates whether the routine completed successfully or, if not, why not. Possible status codes and their meanings include: rpc_s_ok Success. DESCRIPTION The rpc_sm_swap_client_alloc_free routine exchanges the current allocate and free mechanisms used by the client stubs for routines supplied by the caller. RETURN VALUES None. RELATED INFORMATION Functions: rpc_sm_allocate rpc_sm_free rpc_sm_set_client_alloc_free
|