2.2.1 RPC Binding Handles for Remote Shutdown Methods

RPC binding is the process of creating a logical connection between a client and a server. The information that composes the binding between client and server is represented by a structure called a binding handle. RPC binding handles are specified in [MS-RPCE] section 3.1.1.5.1.1.2.

All remote shutdown RPC methods accept an RPC binding handle as the first parameter. The shutdown methods (sections 3.3.4.1 and 3.3.4.2) use an RPC primitive binding handle. The WinReg and InitShutdown RPC methods use a custom binding handle.

This type is declared as follows:

 typedef [handle] wchar_t* PREGISTRY_SERVER_NAME;

This custom binding handle is actually a wrapper around a primitive RPC binding handle (type handle_t); the PREGISTRY_SERVER_NAME type is maintained only for backward. This custom binding handle is mapped to a primitive binding handle using bind and unbind routines, as specified in [MS-RPCE].