# C1.Util.Win.Win32.SendMessage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*">SendMessage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_Int32_System_IntPtr_System_String_" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.String)">SendMessage(nint, int, nint, string)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessage(nint hWnd, int wMsg, nint wParam, string lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As Integer, wParam As IntPtr, lParam As String) As IntPtr</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_Int32_System_Int32_System_Int32_" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.Int32,System.Int32,System.Int32)">SendMessage(nint, int, int, int)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern int SendMessage(nint hWnd, int Msg, int wParam, int lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, Msg As Integer, wParam As Integer, lParam As Integer) As Integer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">Msg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_UInt32_System_IntPtr_System_IntPtr_" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.UInt32,System.IntPtr,System.IntPtr)">SendMessage(nint, uint, nint, nint)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessage(nint hWnd, uint wMsg, nint wParam, nint lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As UInteger, wParam As IntPtr, lParam As IntPtr) As IntPtr</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_Int32_System_IntPtr_System_IntPtr_" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">SendMessage(nint, int, nint, nint)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern int SendMessage(nint hWnd, int wMsg, nint wParam, nint lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As Integer, wParam As IntPtr, lParam As IntPtr) As Integer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_UInt32_System_IntPtr_C1_Util_Win_Win32_LVITEM__" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.UInt32,System.IntPtr,C1.Util.Win.Win32.LVITEM@)">SendMessage(nint, uint, nint, ref LVITEM)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessage(nint hWnd, uint wMsg, nint wParam, ref Win32.LVITEM lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As UInteger, wParam As IntPtr, ByRef lParam As Win32.LVITEM) As IntPtr</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.LVITEM.html">LVITEM</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_UInt32_System_IntPtr_C1_Util_Win_Win32_EDITSTREAM_" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.UInt32,System.IntPtr,C1.Util.Win.Win32.EDITSTREAM)">SendMessage(nint, uint, nint, EDITSTREAM)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessage(nint hWnd, uint wMsg, nint wParam, Win32.EDITSTREAM lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As UInteger, wParam As IntPtr, lParam As Win32.EDITSTREAM) As IntPtr</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.EDITSTREAM.html">EDITSTREAM</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_UInt32_System_IntPtr_C1_Util_Win_Win32_EDITSTREAM64_" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.UInt32,System.IntPtr,C1.Util.Win.Win32.EDITSTREAM64)">SendMessage(nint, uint, nint, EDITSTREAM64)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessage(nint hWnd, uint wMsg, nint wParam, Win32.EDITSTREAM64 lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As UInteger, wParam As IntPtr, lParam As Win32.EDITSTREAM64) As IntPtr</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.EDITSTREAM64.html">EDITSTREAM64</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_Int32_System_IntPtr_C1_Util_Win_Win32_RECT__" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,C1.Util.Win.Win32.RECT@)">SendMessage(nint, int, nint, ref RECT)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern int SendMessage(nint hWnd, int wMsg, nint wParam, ref Win32.RECT lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, wMsg As Integer, wParam As IntPtr, ByRef lParam As Win32.RECT) As Integer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.RECT.html">RECT</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_SendMessage_" data-uid="C1.Util.Win.Win32.SendMessage*"></a>
<h4 id="C1_Util_Win_Win32_SendMessage_System_IntPtr_System_Int32_System_Int32_C1_Util_Win_Win32_POINT__" data-uid="C1.Util.Win.Win32.SendMessage(System.IntPtr,System.Int32,System.Int32,C1.Util.Win.Win32.POINT@)">SendMessage(nint, int, int, ref POINT)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessage(nint hWnd, int msg, int wParam, ref Win32.POINT lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessage(hWnd As IntPtr, msg As Integer, wParam As Integer, ByRef lParam As Win32.POINT) As IntPtr</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">msg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.POINT.html">POINT</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
