Location: Symbol Reference > Classes > TJwComProcessSecurity Class > TJwComProcessSecurity Methods > Initialize Method > TJwComProcessSecurity.Initialize Method (TJwAuthenticationInfoList, TJwComAuthenticationLevel, TJwComImpersonationLevel, TJwComAuthenticationCapabilities, Boolean)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwComProcessSecurity.Initialize Method (TJwAuthenticationInfoList, TJwComAuthenticationLevel, TJwComImpersonationLevel, TJwComAuthenticationCapabilities, Boolean)
Pascal
class procedure Initialize(var AuthenticationList: TJwAuthenticationInfoList; AuthenticationLevel: TJwComAuthenticationLevel; ImpersonationLevel: TJwComImpersonationLevel; Capabilities: TJwComAuthenticationCapabilities; const AutoDestroy: Boolean); virtual; overload;

Initialize is the main class procedure to initialize the process wide security settings for a client using CoInitializeSecurity.

Use this call only for a COM Server that is also a COM client.

Exceptions 
Description 
This exception will be raised if
1. a member of AuthenticationList has the asWinNT or asGSSKerberos
flag set and AuthorizationService is azsDefault.
  1. AuthenticationLevel is calNone but SecurityData contains none nil security information.
  2. Capabilities contains acAccessControl and acAppId
 
This exception will be raised if a security descriptor is supplied which does not allow SYSTEM full access. COM cannot work then. 
This exception will be raised if IgnoreProcess is true and the current process' name can be found in global variable JwKnownComHostProcesses. This exception can be disabled by setting JwIgnoreHostProcessesInServer to false. 
CoInitialize was not called or CoInitializeSecurity was already called. You need to call CoInitialize first or call CoUnitialize, CoInitialize and then again this method. 
CoInitializeSecurity reported an error. 
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!