Implicit Handles

An implicit handle is a handle that is stored in a global variable. You usually initialize the handle and then do not refer to it again until you destroy the binding. Each remote procedure call with an explicit binding-handle parameter uses the implicit handle. You create an implicit handle by specifying the implicit_handle attribute in the ACF for an interface as:

/* ACF file (complete) */

[implicit_handle(handle_t hHello)
]
interface hello
{
}
 

The application uses the implicit handle only as a parameter to the RPC functions. The implicit handle is not used as a parameter to the remote procedure call. For example:

status = RpcBindingFromStringBinding(
            pszStringBinding,
            &hHello);
...
status = RpcBindingFree(hHello);
...