The client stub module provides surrogate entry points on the client for each of the operations defined in the input IDL file.
When the client application makes a call to the remote procedure, its call first goes to the surrogate routine in the client stub file. The client stub routine performs the following functions:
The MIDL compiler switches /client, /cstub, and /out affect the client stub file.