public void RpcBindingSetAuthInfo_null_notOk() { var identity = new SEC_WINNT_AUTH_IDENTITY(); var status = NativeMethods.RpcBindingSetAuthInfo(IntPtr.Zero, "", RPC_C_AUTHN_LEVEL.RPC_C_AUTHN_LEVEL_NONE, RPC_C_AUTHN.RPC_C_AUTHN_NONE, ref identity, 0); Assert.AreNotEqual(RPC_STATUS.RPC_S_OK, status); }
public static extern RPC_STATUS RpcBindingSetAuthInfo(IntPtr Binding, String ServerPrincName, RPC_C_AUTHN_LEVEL AuthnLevel, RPC_C_AUTHN AuthnSvc, [In] ref SEC_WINNT_AUTH_IDENTITY AuthIdentity, RPC_C_AUTHZ AuthzService);