LegacyImpersonationLevel

Sets the default level of impersonation for applications that do not call CoInitializeSecurity.

Registry Entry

HKEY_LOCAL_MACHINE\Software\Microsoft\OLE\LegacyImpersonationLevel= default_impersonation_level

Remarks

The LegacyImpersonationLevel named-value is a REG_WORD that sets the default level of impersonation. The values, from 1 through 4, correspond to the values of the RPC_C_IMP_LEVEL_xxx constants.

Value Meaning
1 RPC_C_IMP_LEVEL_ANONYMOUS
2 RPC_C_IMP_LEVEL_IDENTIFY
3 RPC_C_IMP_LEVEL_IMPERSONATE
4 RPC_C_IMP_LEVEL_DELEGATE

When this named-value is not present, the default impersonation level established by the system is 2 (RPC_C_IMP_LEVEL_IDENTIFY). NTLMSSP on Windows NT 4.0 supports only RPC_C_IMP_LEVEL_IDENTIFY and RPC_C_IMP_LEVEL_IMPERSONATE.

See Also

RPC_C_IMP_LEVEL_xxx, Registering COM Servers