<div class="content" name="DRS_MSG_CRACKREQ_V1" uuid="b47debc0-59ee-40e4-ad0f-4bc9f96043b2"><p>The DRS_MSG_CRACKREQ_V1 structure defines the request
message sent to the <span><a href="9b4bfb44-6656-4404-bcc8-dc88111658b3" data-linktype="relative-path">IDL_DRSCrackNames</a></span>
method.</p><dl>
<dd>
<div><pre> typedef struct {
   ULONG CodePage;
   ULONG LocaleId;
   DWORD dwFlags;
   DWORD formatOffered;
   DWORD formatDesired;
   [range(1,10000)] DWORD cNames;
   [string, size_is(cNames)] WCHAR** rpNames;
 } DRS_MSG_CRACKREQ_V1;
</pre></div>
</dd></dl><p><b>CodePage:</b>  The character set used by
the client. This field SHOULD be ignored by the server.</p><p><b>LocaleId:</b>  The locale used by the
client. This field SHOULD be ignored by the server.</p><p><b>dwFlags:</b>  Zero or more of the
following bit flags, which are presented in little-endian byte order.</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>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>T R</td>
  <td>G C</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>F P O</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
  <td>X</td>
 </tr>
</tbody></table>
</dd>
<dd>
<p><b>X:</b> Unused. MUST be
zero and ignored.</p>
</dd>
<dd>
<p><b>GC
(DS_NAME_FLAG_GCVERIFY, 0x00000004):</b> If set, the call fails if the server
is not a <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_a5a99ce4-e206-42dc-8874-e103934c5b0d" data-linktype="relative-path">GC server</a></span>.</p>
</dd>
<dd>
<p><b>TR
(DS_NAME_FLAG_TRUST_REFERRAL, 0x00000008):</b> If set and the lookup fails on
the server, referrals are returned to trusted <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_fd104241-4fb3-457c-b2c4-e0c18bb20b62" data-linktype="relative-path">forests</a></span> where the
lookup might succeed.</p>
</dd>
<dd>
<p><b>FPO
(DS_NAME_FLAG_PRIVATE_RESOLVE_FPOS, 0x80000000):</b> If set and the named <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_8bb43a65-7a8c-4585-a7ed-23044772f8ca" data-linktype="relative-path">object</a></span>
is a foreign <span><a href="e5c2026b-f732-4c9d-9d60-b945c0ab54eb#gt_f3ef2572-95cf-4c5c-b3c9-551fd648f409" data-linktype="relative-path">security principal</a></span>,
indicate this by using the status of the lookup operation.</p>
</dd></dl><p><b>formatOffered:</b>  The format of the names
in <b>rpNames</b>. This can be one of the values from <span><a href="73c73cf2-0824-4d65-97f4-f56244f3e8a6" data-linktype="relative-path">DS_NAME_FORMAT (section 4.1.4.1.3)</a></span>
or one of the following.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>DS_LIST_SITES 0xFFFFFFFF</td>
  <td>Get all sites in the forest.</td>
 </tr><tr>
  <td>DS_LIST_SERVERS_IN_SITE 0xFFFFFFFE</td>
  <td>Get all servers in a given site.</td>
 </tr><tr>
  <td>DS_LIST_DOMAINS_IN_SITE 0xFFFFFFFD</td>
  <td>Get all domains in a given site.</td>
 </tr><tr>
  <td>DS_LIST_SERVERS_FOR_DOMAIN_IN_SITE 0xFFFFFFFC</td>
  <td>Get all DCs of a specified domain in a given site.</td>
 </tr><tr>
  <td>DS_LIST_INFO_FOR_SERVER 0xFFFFFFFB</td>
  <td>Get DNS host name and server reference for a given DC.</td>
 </tr><tr>
  <td>DS_LIST_ROLES 0xFFFFFFFA</td>
  <td>Get FSMO role owners.</td>
 </tr><tr>
  <td>DS_NT4_ACCOUNT_NAME_SANS_DOMAIN 0xFFFFFFF9</td>
  <td>Get value of sAMAccountName attribute.</td>
 </tr><tr>
  <td>DS_MAP_SCHEMA_GUID 0xFFFFFFF8</td>
  <td>Get LDAP display name from schema GUID. The given schema GUID must be in the curly braced GUID string format as specified in [MS-DTYP] section 2.3.4.3.</td>
 </tr><tr>
  <td>DS_LIST_DOMAINS 0xFFFFFFF7</td>
  <td>Get all domains in the forest.</td>
 </tr><tr>
  <td>DS_LIST_NCS 0xFFFFFFF6</td>
  <td>Get all NCs in the forest.</td>
 </tr><tr>
  <td>DS_ALT_SECURITY_IDENTITIES_NAME 0xFFFFFFF5</td>
  <td>Compares input names against the values of the altSecurityIdentities attribute.</td>
 </tr><tr>
  <td>DS_STRING_SID_NAME 0xFFFFFFF4</td>
  <td>String form of SID.</td>
 </tr><tr>
  <td>DS_LIST_SERVERS_WITH_DCS_IN_SITE 0xFFFFFFF3</td>
  <td>Get all DCs in a given site.</td>
 </tr><tr>
  <td>DS_LIST_GLOBAL_CATALOG_SERVERS 0xFFFFFFF1</td>
  <td>Get all GCs in the forest.</td>
 </tr><tr>
  <td>DS_NT4_ACCOUNT_NAME_SANS_DOMAIN_EX 0xFFFFFFF0</td>
  <td>Get value of sAMAccountName attribute; return status DS_NAME_ERROR_NOT_FOUND if account is invalid.</td>
 </tr><tr>
  <td>DS_USER_PRINCIPAL_NAME_AND_ALTSECID 0xFFFFFFEF</td>
  <td>Compares input names against the user principal name and the values of the altSecurityIdentities attribute.</td>
 </tr></tbody></table>
</dd></dl><p><b>formatDesired:</b>  Format of the names
in the <b>rItems</b> field of the <span><a href="0076d241-3f79-4b0b-8e07-8ccfaff8bd4c" data-linktype="relative-path">DS_NAME_RESULTW</a></span>
structure, which is returned inside the <span><a href="1dc605fe-dd85-481d-84a4-f4c5da812d57" data-linktype="relative-path">DRS_MSG_CRACKREPLY</a></span>
message. This can be one of the values from DS_NAME_FORMAT or one of the
following.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>DS_STRING_SID_NAME 0xFFFFFFF4</td>
  <td>String form of a SID.</td>
 </tr><tr>
  <td>DS_USER_PRINCIPAL_NAME_FOR_LOGON 0xFFFFFFF2</td>
  <td>User principal name.</td>
 </tr></tbody></table>
</dd></dl><p><b>cNames:</b>  Count of items in the <b>rpNames</b>
array.</p><p><b>rpNames:</b>  Input names to translate.</p></div>