<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>暇だったので .NET Foundation (github.com/dotnet) のリポジトリ一覧を眺めていると、 Windows の P/Invoke の定義をしているリポジトリがあったので、 それを使って Win32 API を呼び出してみます。 前提環境は以下の通り Windows 10 Microsoft Visual Studio 2019 .NET Core 3.1 今回は、簡単に Window を列挙する API 群を使ってみます。 まずは、 PInvoke.User32 を NuGet からインストールします。 インストールしたら、あとは以下のように書くだけで、各 API …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2020%2F06%2F28%2Fdotnet-official-p-invoke-library&quot; title=&quot;.NET 公式で定義されている P/Invoke シグネチャーを使って Win32 API を使いたい - なつねこメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-27 15:00:00</published>
  <title>.NET 公式で定義されている P/Invoke シグネチャーを使って Win32 API を使いたい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2020/06/28/dotnet-official-p-invoke-library</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
