RpcBindingFree function (rpcdce.h)
The RpcBindingFree function releases binding-handle resources.
Syntax
RPC_STATUS RpcBindingFree(
RPC_BINDING_HANDLE *Binding
);
Parameters
Binding
Pointer to the server binding to be freed.
Return value
Value | Meaning |
---|---|
|
The call succeeded. |
|
The binding handle was invalid. |
|
This was the wrong kind of binding for the operation. |
Remarks
The RpcBindingFree function releases memory used by a server binding handle. Referenced binding information that was dynamically created during program execution is released as well. An application calls the RpcBindingFree function when it is finished using the binding handle. RPC binding handles must not be freed until all calls using the handle have completed; failure to do so will cause unpredictable results.
Binding handles are dynamically created by calling the following functions:
- RpcBindingCopy
- RpcBindingFromStringBinding
- RpcBindingServerFromClient
- RpcServerInqBindings
- RpcNsBindingImportNext
- RpcNsBindingSelect
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | rpcdce.h (include Rpc.h) |
Library | Rpcrt4.lib |
DLL | Rpcrt4.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for