RpcSmSwapClientAllocFree function
The RpcSmSwapClientAllocFree function exchanges the client stub's memory-allocation and memory-freeing mechanisms with those supplied by the client.
Syntax
RPC_STATUS RPC_ENTRY RpcSmSwapClientAllocFree( RPC_CLIENT_ALLOC *pfnAllocate, RPC_CLIENT_FREE *pfnFree, RPC_CLIENT_ALLOC **pfnOldAllocate, RPC_CLIENT_FREE **pfnOldFree );
Parameters
- pfnAllocate
-
New memory-allocation function.
- pfnFree
-
New memory-releasing function.
- pfnOldAllocate
-
Returns the previous memory-allocation function before the call to this function.
- pfnOldFree
-
Returns the previous memory-releasing function before the call to this function.
Return value
| Value | Meaning |
|---|---|
|
The call succeeded. |
|
The argument is invalid. |
Note For a list of valid error codes, see
RPC Return Values.
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
Show: