<div class="content" name="Flags" uuid="3b4cd410-105a-48be-8379-81c84bfcafbe"><p>Several of the following structures have a <b>Flags</b>
field. The specific Flags bits are defined as follows.</p><dl>
<dd>
<table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="32">Flags (16 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
</tbody></table>
</dd></dl><p> </p><dl>
<dd>
<table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>A N</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>0</td>
  <td>R L</td>
  <td>S R</td>
  <td>R I</td>
  <td>R C</td>
  <td>H</td>
  <td>R D</td>
  <td>K B</td>
  <td>S B</td>
  <td>K I</td>
  <td>S I</td>
  <td>0</td>
  <td>D</td>
  <td>D D</td>
  <td>I</td>
 </tr>
</tbody></table>
</dd>
<dd>
<p><b> </b></p>
</dd>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>I TASK_FLAG_INTERACTIVE</td>
  <td>If set to 1, specifies that the task can interact with the logged-on user.</td>
 </tr><tr>
  <td>DD TASK_FLAG_DELETE_WHEN_DONE</td>
  <td>If set to 1, specifies that the task can be deleted when there are no more scheduled run times.</td>
 </tr><tr>
  <td>D TASK_FLAG_DISABLED</td>
  <td>If set to 1, specifies that the task is disabled.</td>
 </tr><tr>
  <td>SI TASK_FLAG_START_ONLY_IF_IDLE</td>
  <td>If set to 1, specifies that the task begins only if the computer is not in use at the scheduled time.</td>
 </tr><tr>
  <td>KI TASK_FLAG_KILL_ON_IDLE_END</td>
  <td>If set to 1, specifies that the task can be terminated if the computer makes an idle to non-idle transition while the task is running. The computer makes an idle to non-idle transition when user input is detected.</td>
 </tr><tr>
  <td>SB TASK_FLAG_DONT_START_IF_ON_BATTERIES</td>
  <td>If set to 1, specifies that the task cannot start if its target computer is running on battery power.</td>
 </tr><tr>
  <td>KB TASK_FLAG_KILL_IF_GOING_ON_BATTERIES</td>
  <td>If set to 1, specifies that the task can end, and the associated application quit if the task&#39;s target computer switches to battery power.</td>
 </tr><tr>
  <td>RD TASK_FLAG_RUN_ONLY_IF_DOCKED</td>
  <td>Unused. MUST be set to zero when sent and MUST be ignored on receipt.</td>
 </tr><tr>
  <td>H TASK_FLAG_HIDDEN</td>
  <td>If set to 1, specifies that the task is hidden.</td>
 </tr><tr>
  <td>RC TASK_FLAG_RUN_IF_CONNECTED_TO_INTERNET</td>
  <td>Unused. MUST be set to zero when sent and MUST be ignored on receipt.</td>
 </tr><tr>
  <td>RI TASK_FLAG_RESTART_ON_IDLE_RESUME</td>
  <td>If set to 1, specifies that the task can start again if the computer makes a non-idle to idle transition before all the task&#39;s triggers elapse.</td>
 </tr><tr>
  <td>SR TASK_FLAG_SYSTEM_REQUIRED</td>
  <td>If set to 1, specifies that the task can cause the system to resume, or awaken if the system is sleeping.</td>
 </tr><tr>
  <td>RL TASK_FLAG_RUN_ONLY_IF_LOGGED_ON</td>
  <td>If set to 1, specifies that the task can only run if the user specified in the task is logged on interactively.</td>
 </tr><tr>
  <td>AN TASK_APPLICATION_NAME</td>
  <td>If set to 1, specifies that the task has an application name defined.</td>
 </tr></tbody></table>
</dd></dl><p> </p><dl>
<dd>
<p><b>Flags (16 bytes):</b>
Undefined bits. MUST be set to zero when sent and MUST be ignored on receipt.</p>
</dd></dl></div>