This method must be called at the very beginning of an application. It can be executed only once. If it was not yet called then .Net calls it with its default setting when the first DCOm access is made.
Visual Basic (Declaration) | |
---|---|
Public Shared Sub InitializeSecurity( _ ByVal authLevel As Integer, _ ByVal impLevel As Integer, _ ByVal eoac As Integer _ ) |
Parameters
- authLevel
- Authentication level. A value of the RPC_C_AUTHN_LEVEL enumerator.
- impLevel
- Impersonation level. A value of the RPC_C_IMP_LEVEL enumerator.
- eoac
- Cloaking selection. A value of the EOAC enumerator.