<div class="content"><p>The <b>PRINTER_INFO_7</b> structure provides <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_c36db657-3138-4d9a-9289-ded5cbb8b40e" data-linktype="relative-path">directory service (DS)</a>
information about a printer.<a id="Appendix_A_Target_62"></a><a aria-label="Product behavior note 62" href="e81cbc09-ab05-4a32-ae4a-8ec57b436c43#Appendix_A_62" data-linktype="relative-path">&lt;62&gt;</a></p><dl>
<dd>
<div><pre> typedef struct _PRINTER_INFO_7 {
   [string] wchar_t* pszObjectGUID;
   DWORD dwAction;
 } PRINTER_INFO_7;
</pre></div>
</dd></dl><p><b>pszObjectGUID:</b> A pointer to a <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_b753d3f3-f3b7-4fee-bf4d-63085e108ec9" data-linktype="relative-path">curly braced GUID string</a>
that specifies the <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_f49694cc-c350-462d-ab8e-816f0103c6c1" data-linktype="relative-path">GUID</a>
used by the DS to identify this printer, if it is used in a response to
RpcGetPrinter (section <a href="ccbf288a-0768-416d-bede-0ef1987fc286" data-linktype="relative-path">3.1.4.2.6</a>). The string
MUST conform to the curly braced GUID string format (<a href="../ms-dtyp/cca27429-5689-4a16-b2b4-9325d93e4ba2" data-linktype="relative-path">[MS-DTYP]</a>
section <a href="../ms-dtyp/222af2d3-5c00-4899-bc87-ed4c6515e80d" data-linktype="relative-path">2.3.4.3</a>).</p><dl>
<dd>
<p>This pointer SHOULD be NULL when sent and MUST be
ignored on receipt if it is used by the <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_3b2da3d1-c159-4399-a6dd-dfd5f76fa2f5" data-linktype="relative-path">print client</a> in a call to
RpcSetPrinter (section <a href="382997b5-b02a-4b6a-8c68-49a64b8c45f8" data-linktype="relative-path">3.1.4.2.5</a>).</p>
</dd></dl><p><b>dwAction:</b> An action for the printer to
perform if it used by the client in a call to RpcSetPrinter.</p><dl>
<dd>
<p>The value of this member represents a DS-specific
publishing state by the server if it is used in a response to RpcGetPrinter.</p>
</dd>
<dd>
<p>The value of this member MUST be a constant from the
following table:</p>
</dd>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Name/value</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>DSPRINT_PUBLISH</p>
  <p>0x00000001</p>
  </td>
  <td>
  <p>RpcSetPrinter: The server MUST publish the printer&#39;s
  data in the DS (section <a href="3f4f0a52-e417-495a-ad46-0466a9d0ef9d" data-linktype="relative-path">2.3.3.1</a>).</p>
  <p>RpcGetPrinter: The server MUST set this value to
  indicate the printer is published in the DS.</p>
  </td>
 </tr><tr>
  <td>
  <p>DSPRINT_UPDATE</p>
  <p>0x00000002</p>
  </td>
  <td>
  <p>RpcSetPrinter: The server MUST update the printer&#39;s
  published data in the DS (section <a href="1c49f084-0f63-4ac4-9e56-6be4c47915e6" data-linktype="relative-path">2.3.3.2</a>).</p>
  <p>RpcGetPrinter: This value MUST NOT be returned by the
  server.</p>
  </td>
 </tr><tr>
  <td>
  <p>DSPRINT_UNPUBLISH</p>
  <p>0x00000004</p>
  </td>
  <td>
  <p>RpcSetPrinter: The server MUST remove the printer&#39;s
  published data from the DS (section 2.3.3.2).</p>
  <p>RpcGetPrinter: The server MUST set this value to
  indicate the printer is not published.</p>
  </td>
 </tr><tr>
  <td>
  <p>DSPRINT_REPUBLISH</p>
  <p>0x00000008</p>
  </td>
  <td>
  <p>RpcSetPrinter: The server MUST unpublish (section
  2.3.3.2) and publish again (section 2.3.3.1) the DS data for the printer.
  Republishing also MUST change the GUID of the published printer.</p>
  <p>RpcGetPrinter: The server MUST NOT set this value.</p>
  </td>
 </tr><tr>
  <td>
  <p>DSPRINT_PENDING</p>
  <p>0x80000000</p>
  </td>
  <td>
  <p>RpcSetPrinter: This value MUST NOT be used by the
  client.</p>
  <p>RpcGetPrinter: The server MUST return this value, if a
  previous publish or unpublish action initiated by RpcSetPrinter is still in
  progress.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>All members not defined in this section are specified in
sections <a href="c07c2bfd-e2c9-4d36-9259-354a229d645d" data-linktype="relative-path">2.2.1.3.6</a> and <a href="964b517f-6730-4b4a-99ed-ee9648e7f1f7" data-linktype="relative-path">2.2.1.3</a>.</p></div>