<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.autoitscript.com/w/index.php?action=history&amp;feed=atom&amp;title=CommAPI.au3</id>
	<title>CommAPI.au3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.autoitscript.com/w/index.php?action=history&amp;feed=atom&amp;title=CommAPI.au3"/>
	<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;action=history"/>
	<updated>2026-04-12T19:34:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12365&amp;oldid=prev</id>
		<title>Therealhanuta at 11:01, 7 April 2014</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12365&amp;oldid=prev"/>
		<updated>2014-04-07T11:01:24Z</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 11:01, 7 April 2014&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;[[Category:Script]]&amp;lt;syntaxhighlight lang=&quot;autoit&quot;&amp;gt;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:CommAPI]]&lt;/ins&gt;[[Category:Script]]&amp;lt;syntaxhighlight lang=&quot;autoit&quot;&amp;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;; #INDEX# =======================================================================================================================&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;; #INDEX# =======================================================================================================================&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;; Name ..........: CommAPI.au3&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;; Name ..........: CommAPI.au3&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12356&amp;oldid=prev</id>
		<title>Therealhanuta: some small updates</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12356&amp;oldid=prev"/>
		<updated>2014-04-04T14:44:22Z</updated>

		<summary type="html">&lt;p&gt;some small updates&lt;/p&gt;
&lt;a href=&quot;https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;amp;diff=12356&amp;amp;oldid=12345&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12345&amp;oldid=prev</id>
		<title>Therealhanuta: small bugfix</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12345&amp;oldid=prev"/>
		<updated>2014-03-31T09:23:46Z</updated>

		<summary type="html">&lt;p&gt;small bugfix&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 09:23, 31 March 2014&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-l493&quot;&gt;Line 493:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 493:&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;	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;WaitCommEvent&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword*&amp;quot;, 0, &amp;quot;ptr&amp;quot;, $pOverlapped)&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;	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;WaitCommEvent&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword*&amp;quot;, 0, &amp;quot;ptr&amp;quot;, $pOverlapped)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&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;	If Not $aResult Then Return SetError(-1, @ScriptLineNumber, 0)&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;	If Not $aResult&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[2] &lt;/ins&gt;Then Return SetError(-1, @ScriptLineNumber, 0)&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;	Return $aResult[2]&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;	Return $aResult[2]&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;EndFunc   ;==&amp;gt;_CommAPI_WaitCommEvent&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;EndFunc   ;==&amp;gt;_CommAPI_WaitCommEvent&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;/syntaxhighlight&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;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12342&amp;oldid=prev</id>
		<title>Therealhanuta: fix _CommAPI_WaitCommEvent</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12342&amp;oldid=prev"/>
		<updated>2014-03-31T09:21:19Z</updated>

		<summary type="html">&lt;p&gt;fix _CommAPI_WaitCommEvent&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 09:21, 31 March 2014&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-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&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;; Title .........: Communications Functions of Windows API&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;; Title .........: Communications Functions of Windows API&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;; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&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;; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&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;; Version Date ..: 2014-03-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;27&lt;/del&gt;&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;; Version Date ..: 2014-03-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;31&lt;/ins&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;; AutoIt Version : 3.3.8.1&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;; AutoIt Version : 3.3.8.1&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;; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&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;; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&lt;/div&gt;&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-l480&quot;&gt;Line 480:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 480:&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;;                            4 bad number of parameters&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;;                            4 bad number of parameters&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;;                            5 bad parameter&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;;                            5 bad parameter&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;                           -1 function fails (To get extended error information, call _WinAPI_GetLastError or _WinAPI_GetLastErrorMessage)&lt;/ins&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;; Author ........:&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;; Author ........:&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;; Modified ......:&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;; Modified ......:&lt;/div&gt;&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-l488&quot;&gt;Line 488:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 489:&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;Func _CommAPI_WaitCommEvent(Const $hFile, Const $tOverlapped = 0)&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;Func _CommAPI_WaitCommEvent(Const $hFile, Const $tOverlapped = 0)&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;	Local $aResult = DllCall(&quot;kernel32.dll&quot;, &quot;bool&quot;, &quot;WaitCommEvent&quot;, &quot;handle&quot;, $hFile, &quot;dword*&quot;, 0, &quot;ptr&quot;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;DllStructGetPtr(&lt;/del&gt;$&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tOverlapped)&lt;/del&gt;)&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	Local $pOverlapped = DllStructGetPtr($tOverlapped)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	If Not $pOverlapped Then $pOverlapped = DllStructGetPtr(DllStructCreate($tagOverlapped))&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;	Local $aResult = DllCall(&quot;kernel32.dll&quot;, &quot;bool&quot;, &quot;WaitCommEvent&quot;, &quot;handle&quot;, $hFile, &quot;dword*&quot;, 0, &quot;ptr&quot;, $&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pOverlapped&lt;/ins&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;	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	If Not $aResult Then Return SetError(-1, @ScriptLineNumber, 0)&lt;/ins&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;	Return $aResult[2]&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;	Return $aResult[2]&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;EndFunc   ;==&amp;gt;_CommAPI_WaitCommEvent&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;EndFunc   ;==&amp;gt;_CommAPI_WaitCommEvent&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;/syntaxhighlight&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;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12336&amp;oldid=prev</id>
		<title>Therealhanuta: updated @error handling</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12336&amp;oldid=prev"/>
		<updated>2014-03-27T15:22:04Z</updated>

		<summary type="html">&lt;p&gt;updated @error handling&lt;/p&gt;
&lt;a href=&quot;https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;amp;diff=12336&amp;amp;oldid=12318&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12318&amp;oldid=prev</id>
		<title>Therealhanuta: Replace hex values with Constants</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12318&amp;oldid=prev"/>
		<updated>2014-03-07T10:00:03Z</updated>

		<summary type="html">&lt;p&gt;Replace hex values with Constants&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 10:00, 7 March 2014&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-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&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;; Title .........: Communications Functions of Windows API&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;; Title .........: Communications Functions of Windows API&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;; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&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;; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&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;; Version Date ..: 2014-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;02&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;03&lt;/del&gt;&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;; Version Date ..: 2014-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;03&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;07&lt;/ins&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;; AutoIt Version : 3.3.8.1&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;; AutoIt Version : 3.3.8.1&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;; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&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;; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&lt;/div&gt;&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-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&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;br&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;br&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;#include-once&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;#include-once&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;#include &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;CommAPIStructures&lt;/del&gt;.au3&quot;&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;#include &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;CommAPIConstants&lt;/ins&gt;.au3&quot;&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;#NoAutoIt3Execute&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;#NoAutoIt3Execute&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;#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7&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;#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7&lt;/div&gt;&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-l234&quot;&gt;Line 234:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 234:&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;; Description ...: Discards all characters from the output or input buffer of a specified communications resource.&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;; Description ...: Discards all characters from the output or input buffer of a specified communications resource.&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;;                  It can also terminate pending read or write operations on the resource.&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;;                  It can also terminate pending read or write operations on the resource.&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;; Syntax ........: _CommAPI_PurgeComm(Const $hFile[, $iFlags = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;15&lt;/del&gt;])&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;; Syntax ........: _CommAPI_PurgeComm(Const $hFile[, $iFlags = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$PURGE_ALL&lt;/ins&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;; Parameters ....: $hFile               - [in] A handle to the communications device.&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;; Parameters ....: $hFile               - [in] A handle to the communications device.&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;;                  $iFlags              - [in] An integer value.&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;;                  $iFlags              - [in] An integer value.&lt;/div&gt;&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-l246&quot;&gt;Line 246:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 246:&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;; Example .......: No&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;; Example .......: No&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;Func _CommAPI_PurgeComm(Const $hFile, Const $iFlags = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;15&lt;/del&gt;)&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;Func _CommAPI_PurgeComm(Const $hFile, Const $iFlags = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$PURGE_ALL&lt;/ins&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;	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;PurgeComm&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iFlags)&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;	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;PurgeComm&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iFlags)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, False)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12304&amp;oldid=prev</id>
		<title>Therealhanuta: make optional second paramter of method _CommAPI_PurgeComm</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=12304&amp;oldid=prev"/>
		<updated>2014-02-03T14:09:23Z</updated>

		<summary type="html">&lt;p&gt;make optional second paramter of method _CommAPI_PurgeComm&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 14:09, 3 February 2014&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-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&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;; Title .........: Communications Functions of Windows API&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;; Title .........: Communications Functions of Windows API&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;; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&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;; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&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;; Version Date ..: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2013&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;24&lt;/del&gt;&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;; Version Date ..: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2014&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;02&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;03&lt;/ins&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;; AutoIt Version : 3.3.8.1&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;; AutoIt Version : 3.3.8.1&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;; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&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;; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&lt;/div&gt;&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-l234&quot;&gt;Line 234:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 234:&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;; Description ...: Discards all characters from the output or input buffer of a specified communications resource.&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;; Description ...: Discards all characters from the output or input buffer of a specified communications resource.&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;;                  It can also terminate pending read or write operations on the resource.&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;;                  It can also terminate pending read or write operations on the resource.&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;; Syntax ........: _CommAPI_PurgeComm(Const $hFile, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Const &lt;/del&gt;$iFlags)&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;; Syntax ........: _CommAPI_PurgeComm(Const $hFile&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;, $iFlags &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= 15]&lt;/ins&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;; Parameters ....: $hFile               - [in] A handle to the communications device.&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;; Parameters ....: $hFile               - [in] A handle to the communications device.&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;;                  $iFlags              - [in] An integer value.&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;;                  $iFlags              - [in] An integer value.&lt;/div&gt;&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-l246&quot;&gt;Line 246:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 246:&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;; Example .......: No&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;; Example .......: No&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;Func _CommAPI_PurgeComm(Const $hFile, Const $iFlags)&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;Func _CommAPI_PurgeComm(Const $hFile, Const $iFlags &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= 15&lt;/ins&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;	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;PurgeComm&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iFlags)&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;	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;PurgeComm&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iFlags)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, False)&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;	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=11970&amp;oldid=prev</id>
		<title>IEvKI3gv9Wrkd41u: add to Category:Script</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=11970&amp;oldid=prev"/>
		<updated>2013-11-10T00:29:50Z</updated>

		<summary type="html">&lt;p&gt;add to Category:Script&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 00:29, 10 November 2013&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;&amp;lt;syntaxhighlight lang=&quot;autoit&quot;&amp;gt;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Script]]&lt;/ins&gt;&amp;lt;syntaxhighlight lang=&quot;autoit&quot;&amp;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;; #INDEX# =======================================================================================================================&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;; #INDEX# =======================================================================================================================&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;; Name ..........: CommAPI.au3&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;; Name ..........: CommAPI.au3&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IEvKI3gv9Wrkd41u</name></author>
	</entry>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=11938&amp;oldid=prev</id>
		<title>Therealhanuta: Created page with &quot;&lt;syntaxhighlight lang=&quot;autoit&quot;&gt; ; #INDEX# ======================================================================================================================= ; Name .........&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=CommAPI.au3&amp;diff=11938&amp;oldid=prev"/>
		<updated>2013-10-24T09:26:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;autoit&amp;quot;&amp;gt; ; #INDEX# ======================================================================================================================= ; Name .........&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;autoit&amp;quot;&amp;gt;&lt;br /&gt;
; #INDEX# =======================================================================================================================&lt;br /&gt;
; Name ..........: CommAPI.au3&lt;br /&gt;
; Title .........: Communications Functions of Windows API&lt;br /&gt;
; Description ...: Communications Functions of Windows API calls that have been translated to AutoIt functions.&lt;br /&gt;
; Version Date ..: 2013-10-24&lt;br /&gt;
; AutoIt Version : 3.3.8.1&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).aspx&lt;br /&gt;
; Tag(s) ........: RS-232, serial port, COM port&lt;br /&gt;
; Author(s) .....:&lt;br /&gt;
; Dll(s) ........: kernel32.dll&lt;br /&gt;
; Error handling : Everytime @extended is set, it is filled with @ScriptLineNumber of the error in CommAPI.au3.&lt;br /&gt;
;                  Everytime @extended is set, you can call _WinAPI_GetLastError or _WinAPI_GetLastErrorMessage.&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
&lt;br /&gt;
#include-once&lt;br /&gt;
#include &amp;quot;CommAPIStructures.au3&amp;quot;&lt;br /&gt;
#NoAutoIt3Execute&lt;br /&gt;
#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_BuildCommDCB&lt;br /&gt;
; Description ...: Fills a specified DCB structure with values specified in a device-control string.&lt;br /&gt;
; Syntax ........: _CommAPI_BuildCommDCB(Const $sMode, Byref $tDBC)&lt;br /&gt;
; Parameters ....: $sMode               - [in] A device-definition string.&lt;br /&gt;
;                  $tDBC                - [out] A DCB structure.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_BuildCommDCBAndTimeouts, $tagDCB&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363143(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_BuildCommDCB(Const $sMode, ByRef $tDBC)&lt;br /&gt;
	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;BuildCommDCB&amp;quot;, &amp;quot;str&amp;quot;, $sMode, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tDBC))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	If Not $aResult[0] Then Return SetError(6, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_BuildCommDCB&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_BuildCommDCBAndTimeouts&lt;br /&gt;
; Description ...: Translates a device-definition string into appropriate device-control block codes and places them into a device control block.&lt;br /&gt;
;                  The function can also set up time-out values for a device.&lt;br /&gt;
; Syntax ........: _CommAPI_BuildCommDCBAndTimeouts(Const $sMode, Byref $tDBC, Byref $tCommTimeouts)&lt;br /&gt;
; Parameters ....: $sMode               - [in] A device-definition string.&lt;br /&gt;
;                  $tDBC                - [out] A DCB structure.&lt;br /&gt;
;                  $tCommTimeouts       - [out] A COMMTIMEOUTS structure.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_BuildCommDCB, $tagDCB, $tagCOMMTIMEOUTS&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363145(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_BuildCommDCBAndTimeouts(Const $sMode, ByRef $tDBC, ByRef $tCommTimeouts)&lt;br /&gt;
	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;BuildCommDCBAndTimeouts&amp;quot;, &amp;quot;str&amp;quot;, $sMode, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tDBC), &amp;quot;ptr&amp;quot;, DllStructGetPtr($tCommTimeouts))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	If Not $aResult[0] Then Return SetError(6, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_BuildCommDCBAndTimeouts&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_ClearCommBreak&lt;br /&gt;
; Description ...: Restores character transmission for a specified communications device and places the transmission line in a nonbreak state.&lt;br /&gt;
; Syntax ........: _CommAPI_ClearCommBreak(Const $hFile)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_ClearCommError&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363179(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_ClearCommBreak(Const $hFile)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;ClearCommBreak&amp;quot;, &amp;quot;handle&amp;quot;, $hFile)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_ClearCommBreak&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_ClearCommError&lt;br /&gt;
; Description ...: Retrieves information about a communications error and reports the current status of a communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_ClearCommError(Const $hFile[, $tComStat = 0])&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tComStat            - [out] A COMSTAT structure in which the device&amp;#039;s status information is returned.&lt;br /&gt;
; Return values .: Success - A mask indicating the type of error.&lt;br /&gt;
;                  Failure - 0&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_ClearCommBreak, $tagCOMSTAT&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363180(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_ClearCommError(Const $hFile, $tComStat = 0)&lt;br /&gt;
	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;ClearCommError&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword*&amp;quot;, 0, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tComStat))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&lt;br /&gt;
	Return $aResult[2]&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_ClearCommError&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_EscapeCommFunction&lt;br /&gt;
; Description ...: Directs the specified communications device to perform an extended function.&lt;br /&gt;
; Syntax ........: _CommAPI_EscapeCommFunction(Const $hFile, Const $iFunction)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $iFunction           - [in] The extended function to be performed.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_SetOnDTR, _CommAPI_SetOnRTS&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363254(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_EscapeCommFunction(Const $hFile, Const $iFunction)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;EscapeCommFunction&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iFunction)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_EscapeCommFunction&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_GetCommMask&lt;br /&gt;
; Description ...: Retrieves the value of the event mask for a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_GetCommMask(Const $hFile)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
; Return values .: Success - A mask of events that are currently enabled.&lt;br /&gt;
;                  Failure - 0&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363257(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_GetCommMask(Const $hFile)&lt;br /&gt;
	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;GetCommMask&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword*&amp;quot;, 0)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&lt;br /&gt;
	Return $aResult[2]&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_GetCommMask&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_GetCommModemStatus&lt;br /&gt;
; Description ...: Retrieves the modem control-register values.&lt;br /&gt;
; Syntax ........: _CommAPI_GetCommModemStatus(Const $hFile, Byref $pModemStatus)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
; Return values .: Success - The current state of the modem control-register values.&lt;br /&gt;
;                  Failure - 0&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_IsOnCTS, _CommAPI_IsOnDSR, _CommAPI_IsOnRI, _CommAPI_IsOnDCD, _CommAPI_WaitCommEvent&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363258(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_GetCommModemStatus(Const $hFile)&lt;br /&gt;
	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;GetCommModemStatus&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword*&amp;quot;, 0)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&lt;br /&gt;
	Return $aResult[2]&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_GetCommModemStatus&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_GetCommProperties&lt;br /&gt;
; Description ...: Retrieves information about the communications properties for a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_GetCommProperties(Const $hFile[, $tCOMMPROP = 0])&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tCOMMPROP           - [out] A COMMPROP structure in which the communications properties information is returned.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363259(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_GetCommProperties(Const $hFile, $tCOMMPROP = 0)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;GetCommProperties&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tCOMMPROP))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_GetCommProperties&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_GetCommState&lt;br /&gt;
; Description ...: Retrieves the current control settings for a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_GetCommState(Const $hFile, $tDCB = 0)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tDCB                - [out] A DCB structure that receives the control settings information.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_SetCommState, $tagDCB&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363260(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_GetCommState(Const $hFile, $tDCB = 0)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;GetCommState&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tDCB))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_GetCommState&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_GetCommTimeouts&lt;br /&gt;
; Description ...: Retrieves the time-out parameters for all read and write operations on a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_GetCommTimeouts(Const $hFile, $tCommTimeouts = 0)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tCommTimeouts       - [out] A COMMTIMEOUTS structure in which the time-out information is returned.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_SetCommTimeouts, $tagCOMMTIMEOUTS&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363261(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_GetCommTimeouts(Const $hFile, $tCommTimeouts = 0)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;GetCommTimeouts&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tCommTimeouts))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_GetCommTimeouts&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_PurgeComm&lt;br /&gt;
; Description ...: Discards all characters from the output or input buffer of a specified communications resource.&lt;br /&gt;
;                  It can also terminate pending read or write operations on the resource.&lt;br /&gt;
; Syntax ........: _CommAPI_PurgeComm(Const $hFile, Const $iFlags)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $iFlags              - [in] An integer value.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363428(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_PurgeComm(Const $hFile, Const $iFlags)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;PurgeComm&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iFlags)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_PurgeComm&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_SetCommBreak&lt;br /&gt;
; Description ...: Suspends character transmission for a specified communications device and places the transmission line in a break state until the ClearCommBreak function is called.&lt;br /&gt;
; Syntax ........: _CommAPI_SetCommBreak(Const $hFile)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363433(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_SetCommBreak(Const $hFile)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;SetCommBreak&amp;quot;, &amp;quot;handle&amp;quot;, $hFile)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_SetCommBreak&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_SetCommMask&lt;br /&gt;
; Description ...: Specifies a set of events to be monitored for a communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_SetCommMask(Const $hFile, Const $iEventMask)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $iEventMask          - [in] The events to be enabled. A value of zero disables all events.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363435(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_SetCommMask(Const $hFile, Const $iEventMask)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;SetCommMask&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iEventMask)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_SetCommMask&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_SetCommState&lt;br /&gt;
; Description ...: Configures a communications device according to the specifications in a device-control block.&lt;br /&gt;
;                  The function reinitializes all hardware and control settings, but it does not empty output or input queues.&lt;br /&gt;
; Syntax ........: _CommAPI_SetCommState(Const $hFile, Const $tDCB)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tDCB                - [in] A DCB structure that contains the configuration information for the specified communications device.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_GetCommState, $tagDCB&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363436(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_SetCommState(Const $hFile, Const $tDCB)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;SetCommState&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tDCB))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_SetCommState&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_SetCommTimeouts&lt;br /&gt;
; Description ...: Sets the time-out parameters for all read and write operations on a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_SetCommTimeouts(Const $hFile, Const $tCommTimeouts)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tCommTimeouts       - [in] A COMMTIMEOUTS structure that contains the new time-out values.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_GetCommTimeouts, $tagCOMMTIMEOUTS&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363437(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_SetCommTimeouts(Const $hFile, Const $tCommTimeouts)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;SetCommTimeouts&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tCommTimeouts))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_SetCommTimeouts&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_SetupComm&lt;br /&gt;
; Description ...: Initializes the communications parameters for a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_SetupComm(Const $hFile, Const $iInQueue, Const $iOutQueue)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $iInQueue            - [in] The recommended size of the device&amp;#039;s internal input buffer, in bytes.&lt;br /&gt;
;                  $iOutQueue           - [in] The recommended size of the device&amp;#039;s internal output buffer, in bytes.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363439(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_SetupComm(Const $hFile, Const $iInQueue, Const $iOutQueue)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;SetupComm&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword&amp;quot;, $iInQueue, &amp;quot;dword&amp;quot;, $iOutQueue)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_SetupComm&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_TransmitCommChar&lt;br /&gt;
; Description ...: Transmits a specified character ahead of any pending data in the output buffer of the specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_TransmitCommChar(Const $hFile, Const $cChar)&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $sChar               - [in] The character to be transmitted.&lt;br /&gt;
; Return values .: Success - True&lt;br /&gt;
;                  Failure - False&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......:&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363473(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_TransmitCommChar(Const $hFile, Const $cChar)&lt;br /&gt;
	Local $tChar = DllStructCreate(&amp;quot;char&amp;quot;)&lt;br /&gt;
	DllStructSetData($tChar, 1, $cChar)&lt;br /&gt;
	DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;TransmitCommChar&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;char&amp;quot;, $tChar)&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, False)&lt;br /&gt;
	Return True&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_TransmitCommChar&lt;br /&gt;
&lt;br /&gt;
; #FUNCTION# ====================================================================================================================&lt;br /&gt;
; Name ..........: _CommAPI_WaitCommEvent&lt;br /&gt;
; Description ...: Waits for an event to occur for a specified communications device.&lt;br /&gt;
; Syntax ........: _CommAPI_WaitCommEvent(Const $hFile [, Const $tOverlapped = 0])&lt;br /&gt;
; Parameters ....: $hFile               - [in] A handle to the communications device.&lt;br /&gt;
;                  $tOverlapped         - [in] An OVERLAPPED structure.&lt;br /&gt;
; Return values .: Success - A mask indicating the type of event that occurred.&lt;br /&gt;
;                  Failure - 0&lt;br /&gt;
; Author ........:&lt;br /&gt;
; Modified ......:&lt;br /&gt;
; Remarks .......:&lt;br /&gt;
; Related .......: _CommAPI_EscapeCommFunction, _CommAPI_GetCommModemStatus&lt;br /&gt;
; Link ..........: http://msdn.microsoft.com/en-us/library/aa363479(v=vs.85).aspx&lt;br /&gt;
; Example .......: No&lt;br /&gt;
; ===============================================================================================================================&lt;br /&gt;
Func _CommAPI_WaitCommEvent(Const $hFile, Const $tOverlapped = 0)&lt;br /&gt;
	Local $aResult = DllCall(&amp;quot;kernel32.dll&amp;quot;, &amp;quot;bool&amp;quot;, &amp;quot;WaitCommEvent&amp;quot;, &amp;quot;handle&amp;quot;, $hFile, &amp;quot;dword*&amp;quot;, 0, &amp;quot;ptr&amp;quot;, DllStructGetPtr($tOverlapped))&lt;br /&gt;
	If @error Then Return SetError(@error, @ScriptLineNumber, 0)&lt;br /&gt;
	Return $aResult[2]&lt;br /&gt;
EndFunc   ;==&amp;gt;_CommAPI_WaitCommEvent&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Therealhanuta</name></author>
	</entry>
</feed>