RpcSmClientFree function
The RpcSmClientFree function frees memory returned from a client stub.
Syntax
RPC_STATUS RPC_ENTRY RpcSmClientFree(
void *NodeToFree
);
Parameters
- NodeToFree
-
Pointer to memory returned from a client stub.
Return value
| Value | Meaning |
|---|---|
|
The call succeeded. |
Remarks
The RpcSmClientFree function releases memory allocated and returned from a client stub. The memory management handle of the thread calling this function must match the handle of the thread that made the RPC call. Use RpcSmGetThreadHandle and RpcSmSetThreadHandle to pass handles from thread to thread.
Note that using RpcSmClientFree allows a function to free dynamically-allocated memory returned by an RPC call without knowing the memory-management environment from which it was called.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- RpcSmFree
- RpcSmGetThreadHandle
- RpcSmSetClientAllocFree
- RpcSmSetThreadHandle
- RpcSmSwapClientAllocFree