The stubs call the named_type_from_local function. It converts the type that the application uses into the type the stubs transmit across the network. The function is defined as:
void __RPC_USER <named_type>_from_local (
<local_type> __RPC_FAR *, <named_type> __RPC_FAR * __RPC_FAR *);
The first parameter is a pointer to the application data. The second parameter is a pointer to a pointer. The function points it to the transmitted data. The function must allocate memory for the transmitted type.
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
