<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>espresso3389</author_name>
  <author_url>https://blog.hatena.ne.jp/espresso3389/</author_url>
  <blog_title>espresso3389の日記</blog_title>
  <blog_url>https://espresso3389.hatenablog.com/</blog_url>
  <categories>
    <anon>Win32</anon>
    <anon>C++</anon>
  </categories>
  <description>特定のサービスをユーザーアカウントで起動しようとすると、ユーザーにサービス権限がないことが問題になることがある。特にVistaでは、Administratorsに所属していてもこの権限がないので、いろいろとやっかいだ。これを解決するために、 // espresso3389というユーザーにサービス起動の権限を付与する addSeServiceLogonRightToUser(&quot;espresso3389&quot;); という感じで使える関数を作成してみた。 #include &lt;windows.h&gt; #include &lt;sddl.h&gt; #include &lt;iads.h&gt; #include &lt;ntsecapi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fespresso3389.hatenablog.com%2Fentry%2F20080726%2F1217010130&quot; title=&quot;ユーザーに「サービスとしてログオン」権限を付与する - espresso3389の日記&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>2008-07-26 03:22:10</published>
  <title>ユーザーに「サービスとしてログオン」権限を付与する</title>
  <type>rich</type>
  <url>https://espresso3389.hatenablog.com/entry/20080726/1217010130</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
