# C1.Util.Win.Win32.UpdateLayeredWindow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_Win_Win32_UpdateLayeredWindow_" data-uid="C1.Util.Win.Win32.UpdateLayeredWindow*">UpdateLayeredWindow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_Win_Win32_UpdateLayeredWindow_" data-uid="C1.Util.Win.Win32.UpdateLayeredWindow*"></a>
<h4 id="C1_Util_Win_Win32_UpdateLayeredWindow_System_IntPtr_System_IntPtr_C1_Util_Win_Win32_POINT__C1_Util_Win_Win32_SIZE__System_IntPtr_C1_Util_Win_Win32_POINT__System_Int32_C1_Util_Win_Win32_BLENDFUNCTION__System_Int32_" data-uid="C1.Util.Win.Win32.UpdateLayeredWindow(System.IntPtr,System.IntPtr,C1.Util.Win.Win32.POINT@,C1.Util.Win.Win32.SIZE@,System.IntPtr,C1.Util.Win.Win32.POINT@,System.Int32,C1.Util.Win.Win32.BLENDFUNCTION@,System.Int32)">UpdateLayeredWindow(nint, nint, ref POINT, ref SIZE, nint, ref POINT, int, ref BLENDFUNCTION, 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 bool UpdateLayeredWindow(nint hwnd, nint hdcDst, ref Win32.POINT pptDst, ref Win32.SIZE psize, nint hdcSrc, ref Win32.POINT pprSrc, int crKey, ref Win32.BLENDFUNCTION pblend, int dwFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function UpdateLayeredWindow(hwnd As IntPtr, hdcDst As IntPtr, ByRef pptDst As Win32.POINT, ByRef psize As Win32.SIZE, hdcSrc As IntPtr, ByRef pprSrc As Win32.POINT, crKey As Integer, ByRef pblend As Win32.BLENDFUNCTION, dwFlags As Integer) As Boolean</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.intptr">nint</a></td>
      <td><span class="parametername">hdcDst</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">pptDst</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.SIZE.html">SIZE</a></td>
      <td><span class="parametername">psize</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">hdcSrc</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">pprSrc</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">crKey</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.BLENDFUNCTION.html">BLENDFUNCTION</a></td>
      <td><span class="parametername">pblend</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">dwFlags</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.boolean">bool</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
