September 2004
Intermediate to advanced
408 pages
7h 25m
English
It's a pity that I even have to write this item or that it needs to be as complicated as this, but the COM interop team, although content to automate the call to CoInitializeEx for you, apparently doesn't feel the same about helping you with security. In fact, in a simple console or Windows Forms application, for example, nobody in the framework bothers to call CoInitializeSecurity. Didn't anyone on this team read Brown (2000b)? Arrrgh!
Here's the problem. If you're writing a COM client, especially one that communicates with remote COM servers, you need to have some control over your security settings, and if nobody in your process calls CoInitializeSecurity, well, COM does its best to figure ...
Read now
Unlock full access