Location: Symbol Reference > Classes > TJwComProcessSecurity Class > TJwComProcessSecurity Methods > Initialize Method > TJwComProcessSecurity.Initialize Method (TJwString, TJwString, TJwString, TJwComAuthorizationService, TJwComAuthenticationLevel, TJwComImpersonationLevel, TJwComAuthenticationCapabilities)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwComProcessSecurity.Initialize Method (TJwString, TJwString, TJwString, TJwComAuthorizationService, TJwComAuthenticationLevel, TJwComImpersonationLevel, TJwComAuthenticationCapabilities)
Pascal
class procedure Initialize(const Domain: TJwString; const UserName: TJwString; const Password: TJwString; const AuthorizationService: TJwComAuthorizationService; const AuthenticationLevel: TJwComAuthenticationLevel; const ImpersonationLevel: TJwComImpersonationLevel; const Capabilities: TJwComAuthenticationCapabilities); virtual; overload;

Create initializes the process wide security settings for a client process.

It creates an authentication list with asWinNT authentication service set to the given user's identity (Domain, UserName, Password).

Exceptions 
Description 
This exception will be raised if
  1. AuthenticationLevel is calNone
  2. Capabilities contains acAccessControl and acAppId
  3. AuthorizationService is azsDefault
 
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!