<div class="content" name="LSAPR_POLICY_AUDIT_EVENTS_INFO" uuid="d00fc364-577d-4ed0-b3a5-952d78b67695"><p>The LSAPR_POLICY_AUDIT_EVENTS_INFO structure contains
auditing options on the server.</p><dl>
<dd>
<div><pre> typedef struct _LSAPR_POLICY_AUDIT_EVENTS_INFO {
   unsigned char AuditingMode;
   [size_is(MaximumAuditEventCount)] 
     unsigned long* EventAuditingOptions;
   [range(0,1000)] unsigned long MaximumAuditEventCount;
 } LSAPR_POLICY_AUDIT_EVENTS_INFO,
  *PLSAPR_POLICY_AUDIT_EVENTS_INFO;
</pre></div>
</dd></dl><p><b>AuditingMode:</b>  0 indicates that
auditing is disabled. All other values indicate that auditing is enabled.</p><p><b>EventAuditingOptions:</b>  An array of
values specifying the auditing options for a particular audit type. The
auditing type of an element is represented by its index in the array, which is
identified by the <span><a href="04036d49-a482-4b57-995f-11d539f2e5b7" data-linktype="relative-path">POLICY_AUDIT_EVENT_TYPE</a></span>
enumeration (see section 2.2.4.20). Each element MUST contain one or more of
the values in the table below. </p><dl>
<dd>
<p>If the <b>MaximumAuditEventCount</b> field has a
value other than 0, this field MUST NOT be NULL.</p>
</dd>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>POLICY_AUDIT_EVENT_UNCHANGED 0x00000000</td>
  <td>Leave existing auditing options unchanged for events of this type; used only for set operations. This value cannot be combined with values in this table.</td>
 </tr><tr>
  <td>POLICY_AUDIT_EVENT_NONE 0x00000004</td>
  <td>Upon updates, this value causes the existing auditing options for events of this type to be deleted and replaced with any other new values specified. If specified by itself, this value cancels all auditing options for events of this type. This value is used only for set operations.</td>
 </tr><tr>
  <td>POLICY_AUDIT_EVENT_SUCCESS 0x00000001</td>
  <td>When auditing is enabled, audit all successful occurrences of events of the given type.</td>
 </tr><tr>
  <td>POLICY_AUDIT_EVENT_FAILURE 0x00000002</td>
  <td>When auditing is enabled, audit all unsuccessful occurrences of events of the given type.</td>
 </tr></tbody></table>
</dd></dl><p><b>MaximumAuditEventCount:</b>  The number
of entries in the EventAuditingOptions array.<a id="Appendix_A_Target_23"></a><a aria-label="Product behavior note 23" href="2a769a08-e023-459f-aebe-4fb3f595c0b7#Appendix_A_23" data-linktype="relative-path">&lt;23&gt;</a></p></div>