public LOGONSSOUSER_ERROR_CODE MyLogonSsoUser(ref MSV1_0_INTERACTIVE_LOGON newCredentials, int disconnectCurrentUser, int restartPna, ref int result) { return(LogonSsoUser(ref newCredentials, disconnectCurrentUser, restartPna, ref result)); }
public LOGONSSOUSER_ERROR_CODE callLogonSsoUser(ref MSV1_0_INTERACTIVE_LOGON pNewCredentials, int bDisconnectCurrentUser, int bRestartPna, ref UInt32 pDwResult) { return(LogonSsoUser(ref pNewCredentials, bDisconnectCurrentUser, bRestartPna, ref pDwResult)); }
static void Main(string[] args) { MSV1_0_INTERACTIVE_LOGON logon = new MSV1_0_INTERACTIVE_LOGON(); logon.LogonDomainName = FastConnectWrapper.InitLsaString("xa.local"); logon.MessageType = MSV1_0_LOGON_SUBMIT_TYPE.MsV1_0InteractiveLogon; logon.Password = FastConnectWrapper.InitLsaString("citrix"); logon.UserName = FastConnectWrapper.InitLsaString("user1"); FastConnectWrapper m = new FastConnectWrapper(); int result = 100; LOGONSSOUSER_ERROR_CODE intermediate = m.MyLogonSsoUser(ref logon, 1, 1, ref result); System.Console.WriteLine("Press any key to Logoff"); System.Console.ReadKey(); m.MyLogoffSsoUser(1); }
private static extern LOGONSSOUSER_ERROR_CODE LogonSsoUser(ref MSV1_0_INTERACTIVE_LOGON pNewCredentials, int bDisconnectCurrentUser, int bRestartPna, ref int pDwResult);