There are two ways to set process-wide security. The first way is very easy because it requires no programming. You use the Dcomcnfg.exe tool, provided with the Platform SDK, to set security in the registry. The second technique offers the programmer more control, and it requires a call to CoInitializeSecurity. For more information on these techniques, see the following topics: