The server stub provides surrogate entry points on the server for each of the operations defined in the input IDL file.
When a server stub routine is invoked by the RPC run-time library, it performs the following functions:
The MIDL compiler switches /env, /server, /sstub, and /out affect the server stub file.