Location: Symbol Reference > Variables > JwKnownComHostProcesses Variable
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwKnownComHostProcesses Variable
Pascal
JwKnownComHostProcesses: array[1..20] of TJwString = ('dllhost.exe', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' );

JwKnownComHostProcesses defines an array of process names that are considered to host COM classes. These processes must not use CoInitializeSecurity (implemented by any of the Initialize methods of TJwComProcessSecurity).

This array is ignored if JwIgnoreHostProcessesInServer is false. 

You can set your own process name. The process name is case insensitive. JWSCL will check whether the current process name is one of the names in the array, and if yes the TJwComProcessSecurity.Initialize will fail. 

Empty strings are ignored. 

Currently only "dllhost.exe" is considered to be dangerous.

There are 19 entries left to be used. The first 10 entries are considered to be used by JWSCL exclusively. You can start at index 11 up to 20 (That is because the array starts at index 1).

JwKnownComHostProcesses[11] := 'myhost.exe';
JwKnownComHostProcesses[12] := 'myhost2.exe';

Custom start index: 11 

Last index : 20

For more information see JwIgnoreHostProcessesInServer.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!