SECURITY_IMPERSONATION_LEVEL (Enums)
Last changed: -167.115.15.8

.
Summary
The SECURITY_IMPERSONATION_LEVEL enumeration type contains values that specify security impersonation levels. Security impersonation levels govern the degree to which a server process can act on behalf of a client process.

C# Definition:

public enum SECURITY_IMPERSONATION_LEVEL {
    SecurityAnonymous,
    SecurityIdentification,
    SecurityImpersonation,
    SecurityDelegation
}

VB Definition:

Enum SECURITY_IMPERSONATION_LEVEL
    SecurityAnonymous
    SecurityIdentification
    SecurityImpersonation
    SecurityDelegation
End Enum

Notes:

None.

Documentation

VB.NET definition with enumeration for the C++ constants:

Public Enum SecurityImpersonationLevel

    SecurityAnonymous = 0    
    SecurityIdentification = 1    
    SecurityImpersonation = 2    
    SecurityDelegation = 3

End Enum

Notes:

Following friendlier VB naming/capitalization standards is this example, however the naming convention is meaningless and personal choice, so long as the correct value gets used where it's needed.