<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_TVistaLogin_LoginHandle</id>
	<title>RPC HELP TVistaLogin LoginHandle - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_TVistaLogin_LoginHandle"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;action=history"/>
	<updated>2026-05-05T11:11:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;diff=16968&amp;oldid=prev</id>
		<title>Kdtop at 18:35, 8 July 2015</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;diff=16968&amp;oldid=prev"/>
		<updated>2015-07-08T18:35:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:35, 8 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The LoginHandle property is available at run-time only. It holds the Application Handle for the lmAppHandle mode of [[RPC_HELP_Silent_Login|Silent Login]]. The Application Handle is obtained from the VistA M Server by a currently running application using the GetAppHandle function in the [[RPC_HELP_TRPCB_Unit|TRPCB Unit]]. The function returns a String value, which is then passed as a command line argument with an application that is being started. The new application must know to look for the handle, and if present, set up the [[RPC_HELP_Silent_Login|Silent Login]]. The [[RPC_HELP_Silent_RpcSLogin_StartProgSLogin|StartProgSLogin]] procedure in the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_RpcSLogin_unit&lt;/del&gt;|RpcSLogin unit]] can be used directly or as an example of how the application would be started with a valid AppHandle as a command line argument. The [[RPC_HELP_Silent_RpcSLogin_CheckCmdLine|CheckCmdLine]] procedure in the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_RpcSLogin_unit&lt;/del&gt;|RpcSLogin unit]] can be used in an application to determine whether an AppHandle has been passed and to initiate the Broker connection or used as an example of how this could be done.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The LoginHandle property is available at run-time only. It holds the Application Handle for the lmAppHandle mode of [[RPC_HELP_Silent_Login|Silent Login]]. The Application Handle is obtained from the VistA M Server by a currently running application using the GetAppHandle function in the [[RPC_HELP_TRPCB_Unit|TRPCB Unit]]. The function returns a String value, which is then passed as a command line argument with an application that is being started. The new application must know to look for the handle, and if present, set up the [[RPC_HELP_Silent_Login|Silent Login]]. The [[RPC_HELP_Silent_RpcSLogin_StartProgSLogin|StartProgSLogin]] procedure in the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_RpcSLogin&lt;/ins&gt;|RpcSLogin unit]] can be used directly or as an example of how the application would be started with a valid AppHandle as a command line argument. The [[RPC_HELP_Silent_RpcSLogin_CheckCmdLine|CheckCmdLine]] procedure in the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_RpcSLogin&lt;/ins&gt;|RpcSLogin unit]] can be used in an application to determine whether an AppHandle has been passed and to initiate the Broker connection or used as an example of how this could be done.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NOTE: The two procedures referenced here also pass the current [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_TRPCBroker_Server_Property&lt;/del&gt;|Server]], [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_TRPCBroker_ListenerPort_Property&lt;/del&gt;|ListenerPort]], and [[RPC_HELP_TVistaLogin_Division|Division]] for the user so that the connection would be made to the same VistA M Server as the original application.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NOTE: The two procedures referenced here also pass the current [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_TRPCBroker_Server&lt;/ins&gt;|Server]], [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_TRPCBroker_ListenerPort&lt;/ins&gt;|ListenerPort]], and [[RPC_HELP_TVistaLogin_Division|Division]] for the user so that the connection would be made to the same VistA M Server as the original application.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The AppHandle that is obtained via the GetAppHandle function is only valid for approximately 20 seconds, after which the Silent Login would fail.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The AppHandle that is obtained via the GetAppHandle function is only valid for approximately 20 seconds, after which the Silent Login would fail.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NOTE: For a demonstration using the lmAppHandle, please run the lmAppHandle_Demo.EXE located in the ..\BDK32\Samples\SilentSignOn directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NOTE: For a demonstration using the lmAppHandle, please run the lmAppHandle_Demo.EXE located in the ..\BDK32\Samples\SilentSignOn directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;diff=16967&amp;oldid=prev</id>
		<title>Kdtop at 18:32, 8 July 2015</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;diff=16967&amp;oldid=prev"/>
		<updated>2015-07-08T18:32:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:32, 8 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The LoginHandle property is available at run-time only. It holds the Application Handle for the lmAppHandle mode of [[RPC_HELP_Silent_Login|Silent Login]]. The Application Handle is obtained from the VistA M Server by a currently running application using the GetAppHandle function in the [[RPC_HELP_TRPCB_Unit|TRPCB Unit]]. The function returns a String value, which is then passed as a command line argument with an application that is being started. The new application must know to look for the handle, and if present, set up the [[RPC_HELP_Silent_Login|Silent Login]]. The [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_Silent_Login_StartProgSLogin&lt;/del&gt;|StartProgSLogin]] procedure in the [[RPC_HELP_RpcSLogin_unit|RpcSLogin unit]] can be used directly or as an example of how the application would be started with a valid AppHandle as a command line argument. The [[RPC_HELP_Silent_RpcSLogin_CheckCmdLine|CheckCmdLine]] procedure in the [[RPC_HELP_RpcSLogin_unit|RpcSLogin unit]] can be used in an application to determine whether an AppHandle has been passed and to initiate the Broker connection or used as an example of how this could be done.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The LoginHandle property is available at run-time only. It holds the Application Handle for the lmAppHandle mode of [[RPC_HELP_Silent_Login|Silent Login]]. The Application Handle is obtained from the VistA M Server by a currently running application using the GetAppHandle function in the [[RPC_HELP_TRPCB_Unit|TRPCB Unit]]. The function returns a String value, which is then passed as a command line argument with an application that is being started. The new application must know to look for the handle, and if present, set up the [[RPC_HELP_Silent_Login|Silent Login]]. The [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPC_HELP_Silent_RpcSLogin_StartProgSLogin&lt;/ins&gt;|StartProgSLogin]] procedure in the [[RPC_HELP_RpcSLogin_unit|RpcSLogin unit]] can be used directly or as an example of how the application would be started with a valid AppHandle as a command line argument. The [[RPC_HELP_Silent_RpcSLogin_CheckCmdLine|CheckCmdLine]] procedure in the [[RPC_HELP_RpcSLogin_unit|RpcSLogin unit]] can be used in an application to determine whether an AppHandle has been passed and to initiate the Broker connection or used as an example of how this could be done.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NOTE: The two procedures referenced here also pass the current [[RPC_HELP_TRPCBroker_Server_Property|Server]], [[RPC_HELP_TRPCBroker_ListenerPort_Property|ListenerPort]], and [[RPC_HELP_TVistaLogin_Division|Division]] for the user so that the connection would be made to the same VistA M Server as the original application.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NOTE: The two procedures referenced here also pass the current [[RPC_HELP_TRPCBroker_Server_Property|Server]], [[RPC_HELP_TRPCBroker_ListenerPort_Property|ListenerPort]], and [[RPC_HELP_TVistaLogin_Division|Division]] for the user so that the connection would be made to the same VistA M Server as the original application.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;diff=16520&amp;oldid=prev</id>
		<title>Kdtop: Created page with &quot;&lt;h2&gt;LoginHandle Property&lt;/h2&gt;  &lt;h3&gt;Applies to&lt;/h3&gt; TVistaLogin class	  &lt;h3&gt;Declaration&lt;/h3&gt;     property LoginHandle: String; 	 &lt;h3&gt;Description&lt;/h3&gt; T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_TVistaLogin_LoginHandle&amp;diff=16520&amp;oldid=prev"/>
		<updated>2015-07-04T02:21:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;h2&amp;gt;LoginHandle Property&amp;lt;/h2&amp;gt;  &amp;lt;h3&amp;gt;Applies to&amp;lt;/h3&amp;gt; &lt;a href=&quot;/index.php/RPC_HELP_TVistaLogin&quot; title=&quot;RPC HELP TVistaLogin&quot;&gt;TVistaLogin&lt;/a&gt; class	  &amp;lt;h3&amp;gt;Declaration&amp;lt;/h3&amp;gt;     property LoginHandle: String; 	 &amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt; T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h2&amp;gt;LoginHandle Property&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Applies to&amp;lt;/h3&amp;gt;&lt;br /&gt;
[[RPC_HELP_TVistaLogin|TVistaLogin]] class	&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Declaration&amp;lt;/h3&amp;gt;&lt;br /&gt;
    property LoginHandle: String;&lt;br /&gt;
	&lt;br /&gt;
&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;br /&gt;
The LoginHandle property is available at run-time only. It holds the Application Handle for the lmAppHandle mode of [[RPC_HELP_Silent_Login|Silent Login]]. The Application Handle is obtained from the VistA M Server by a currently running application using the GetAppHandle function in the [[RPC_HELP_TRPCB_Unit|TRPCB Unit]]. The function returns a String value, which is then passed as a command line argument with an application that is being started. The new application must know to look for the handle, and if present, set up the [[RPC_HELP_Silent_Login|Silent Login]]. The [[RPC_HELP_Silent_Login_StartProgSLogin|StartProgSLogin]] procedure in the [[RPC_HELP_RpcSLogin_unit|RpcSLogin unit]] can be used directly or as an example of how the application would be started with a valid AppHandle as a command line argument. The [[RPC_HELP_Silent_RpcSLogin_CheckCmdLine|CheckCmdLine]] procedure in the [[RPC_HELP_RpcSLogin_unit|RpcSLogin unit]] can be used in an application to determine whether an AppHandle has been passed and to initiate the Broker connection or used as an example of how this could be done.&lt;br /&gt;
	&lt;br /&gt;
NOTE: The two procedures referenced here also pass the current [[RPC_HELP_TRPCBroker_Server_Property|Server]], [[RPC_HELP_TRPCBroker_ListenerPort_Property|ListenerPort]], and [[RPC_HELP_TVistaLogin_Division|Division]] for the user so that the connection would be made to the same VistA M Server as the original application.&lt;br /&gt;
	&lt;br /&gt;
The AppHandle that is obtained via the GetAppHandle function is only valid for approximately 20 seconds, after which the Silent Login would fail.&lt;br /&gt;
	&lt;br /&gt;
NOTE: For a demonstration using the lmAppHandle, please run the lmAppHandle_Demo.EXE located in the ..\BDK32\Samples\SilentSignOn directory.&lt;/div&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
</feed>