[DllImport("ole32.dll", SetLastError = true)]
public static extern int CoSetProxyBlanket(
IUnknown pProxy,
uint dwAuthnSvc,
uint dwAuthzSvc,
[MarshalAs(UnmanagedType.LPWStr)] string pServerPrincName,
uint dwAuthnLevel,
uint dwImpLevel,
IntPtr pAuthInfo,
uint dwCapabilities
);