<div class="content" name="PRINTER_INFO_7" uuid="91a6cb80-8df7-43d0-8a5d-8f1d23f96de6"><p>The <b>PRINTER_INFO_7</b> structure provides <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_c36db657-3138-4d9a-9289-ded5cbb8b40e" data-linktype="relative-path">directory
service (DS)</a></span> 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 <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_b753d3f3-f3b7-4fee-bf4d-63085e108ec9" data-linktype="relative-path">curly
braced GUID string</a></span> that specifies the <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_f49694cc-c350-462d-ab8e-816f0103c6c1" data-linktype="relative-path">GUID</a></span> used by the DS
to identify this printer, if it is used in a response to
RpcGetPrinter (section <span><a href="ccbf288a-0768-416d-bede-0ef1987fc286" data-linktype="relative-path">3.1.4.2.6</a></span>). The
string MUST conform to the curly braced GUID string format (<span><a href="../ms-dtyp/cca27429-5689-4a16-b2b4-9325d93e4ba2" data-linktype="relative-path">[MS-DTYP]</a></span>
section <span><a href="../ms-dtyp/222af2d3-5c00-4899-bc87-ed4c6515e80d" data-linktype="relative-path">2.3.4.3</a></span>).</p><dl>
<dd>
<p>This pointer SHOULD be NULL when sent and MUST be
ignored on receipt if it is used by the <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_3b2da3d1-c159-4399-a6dd-dfd5f76fa2f5" data-linktype="relative-path">print client</a></span> in a
call to RpcSetPrinter (section <span><a href="382997b5-b02a-4b6a-8c68-49a64b8c45f8" data-linktype="relative-path">3.1.4.2.5</a></span>).</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>DSPRINT_PUBLISH 0x00000001</td>
  <td>RpcSetPrinter: The server MUST publish the printer&#39;s data in the DS (section 2.3.3.1). RpcGetPrinter: The server MUST set this value to indicate the printer is published in the DS.</td>
 </tr><tr>
  <td>DSPRINT_UPDATE 0x00000002</td>
  <td>RpcSetPrinter: The server MUST update the printer&#39;s published data in the DS (section 2.3.3.2). RpcGetPrinter: This value MUST NOT be returned by the server.</td>
 </tr><tr>
  <td>DSPRINT_UNPUBLISH 0x00000004</td>
  <td>RpcSetPrinter: The server MUST remove the printer&#39;s published data from the DS (section 2.3.3.2). RpcGetPrinter: The server MUST set this value to indicate the printer is not published.</td>
 </tr><tr>
  <td>DSPRINT_REPUBLISH 0x00000008</td>
  <td>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. RpcGetPrinter: The server MUST NOT set this value.</td>
 </tr><tr>
  <td>DSPRINT_PENDING 0x80000000</td>
  <td>RpcSetPrinter: This value MUST NOT be used by the client. RpcGetPrinter: The server MUST return this value, if a previous publish or unpublish action initiated by RpcSetPrinter is still in progress.</td>
 </tr></tbody></table>
</dd></dl><p>All members not defined in this section are specified in
sections <span><a href="c07c2bfd-e2c9-4d36-9259-354a229d645d" data-linktype="relative-path">2.2.1.3.6</a></span> and <span><a href="964b517f-6730-4b4a-99ed-ee9648e7f1f7" data-linktype="relative-path">2.2.1.3</a></span>.</p></div>