<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>.Net開発</anon>
  </categories>
  <description>ActiveDirectoryから取得したオブジェクトの SID はバイト型配列になっています。 これを文字列(S-1-5-21-xxx-xxx...)に変換する方法です。 WindowsAPIにMSDN:ConvertSidToStringSidという関数があるようなので、これを使うと簡単に文字列形式にできるようですね。 サンプルはこんな感じです。(C#) /// /// ActiveDirectoryから取得したbyte配列をSID文字列形式に変換 /// /// 変換する SID へのポインタを指定します /// NULL で終わる SID 文字列へのポインタを受け取る変数へのポインタを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2010%2F03%2F21%2F093200&quot; title=&quot;(.Net)SIDを文字列に変換 - 3流プログラマのメモ書き&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>2010-03-21 09:32:00</published>
  <title>(.Net)SIDを文字列に変換</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2010/03/21/093200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
