The stubs call the named_type_to_local function to convert data from a transmitted type to the type that they present to the application. The function is defined as:
void __RPC_USER <named_type>_to_local(
<named_type> __RPC_FAR * _RPC_FAR * ,
<local_type> __RPC_FAR * );
The first parameter points to the transmitted data. The function sets the second parameter to point to the presented data.
The named_type_to_local function must manage memory for the presented type. The function must allocate memory for the entire data structure that starts at the address indicated by the second parameter, except for the parameter itself (the stub allocates memory for the root node and passes it to the function). The value of the second parameter cannot change during the call. The function can change the contents at that address.
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.
