<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haradago</author_name>
  <author_url>https://blog.hatena.ne.jp/haradago/</author_url>
  <blog_title>ぶりりあんとろーど(仮)</blog_title>
  <blog_url>https://haradago.hatenadiary.org/</blog_url>
  <categories>
    <anon>.NET</anon>
  </categories>
  <description>LogonUserメソッドとWindowsIdentityクラスのImpersonateメソッドを組み合わせることで ログインしているユーザとは別のユーザとしてプログラムを実行させることができる(ユーザの偽装) 手順としては以下のようになる 1.LogonUserメソッドで別ユーザのトークンを取得 2.WindowsIdentityクラスのImpersonateメソッドで1で取得したトークンを用いて別ユーザに偽装 3.偽装したユーザで任意の処理を実行 4.WindowsIdentityクラスのUndoメソッドで元のユーザに戻る サンプルプログラムは以下の通り Module1.vb Import…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharadago.hatenadiary.org%2Fentry%2F20110105%2Fp1&quot; title=&quot;LogonUser - ぶりりあんとろーど(仮)&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>2011-01-05 00:00:00</published>
  <title>LogonUser</title>
  <type>rich</type>
  <url>https://haradago.hatenadiary.org/entry/20110105/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
