<p>I can use DCOMCNFG to disable remote launch on my DCOM application, but I would like to do this programatically. I looked at CoInitializeSecurity, but that does not seem to do it. Anyone done this?</p>

<p>I am using Delphi BTW.</p>

[{'answer_id': 82160, 'author': 'Roger Lipscombe', 'author_id': 8446, 'author_profile': 'https://Stackoverflow.com/users/8446', 'pm_score': 1, 'selected': False, 'text': "<p>The permissions for Remote/Local Activation/Launch are stored in the registry under the AppID for the object.</p>\n\n<p>I'm not sure how to edit it programmatically.</p>\n"}, {'answer_id': 1941922, 'author': 'ChristianWimmer', 'author_id': 117262, 'author_profile': 'https://Stackoverflow.com/users/117262', 'pm_score': 2, 'selected': False, 'text': '<p>The binary data is simply a security descriptor structure (PSecurityDescriptor). I mean it is a copy of the memory of this structure. And, of course, the security descriptor is self relative.\nJWSCL can create such a structure easily. </p>\n\n<p>Launch- and AccessPermission list for every user access rights that also contain remote and local access.</p>\n'}, {'answer_id': 2073995, 'author': 'Ruddy', 'author_id': 229904, 'author_profile': 'https://Stackoverflow.com/users/229904', 'pm_score': 0, 'selected': False, 'text': '<p>This is very similar to <a href="https://stackoverflow.com/questions/1998882/change-access-permissions-in-component-services-com-security-with-script-api/2072344#2072344">change Access Permissions in Component Services > COM Security with script/api?</a> for which i posted a response.</p>\n'}]
['https://Stackoverflow.com/questions/81963', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4382/']