<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>概要 Windowsではファイル名を指定された場合のパスの検索順序がレジストリに保存されており、「ファイル名を指定して実行」やLoadLibrary関数等ではこの順序が使用されます。この検索機能はSearchPath関数で公開されており、C#でもP/Invokeにより使用することができます。以下ではSearchPath関数の使用例を紹介します。 SearchPath関数の使用例 C#11のコード using System.Runtime.CompilerServices; using System.Runtime.InteropServices; Console.WriteLine(Utili…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2019%2F03%2F24%2F000000_1&quot; title=&quot;C# SearchPath関数を使用して既定の順番でパスを検索する - potisanのプログラミングメモ&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>2019-03-24 00:00:00</published>
  <title>C# SearchPath関数を使用して既定の順番でパスを検索する</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2019/03/24/000000_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
