<div class="content" name="DeviceStatus" uuid="2d874e92-e3f0-44ff-8464-90f94de682fb"><p>The IWindowsDriverUpdate::DeviceStatus (opnum 60) method
retrieves the status of the device this driver matches.</p><dl>
<dd>
<div><pre> HRESULT DeviceStatus(
   [out, retval] LONG* retval
 );
</pre></div>
</dd></dl><p><b>retval: </b>A <span><a href="../ms-dtyp/29d44d70-382f-4998-9d76-8a1fe93e445c" data-linktype="relative-path">LONG</a></span>
specifying the status of the device this driver matches.</p><p><b>Return Values: </b>The method MUST return
information in an <b>HRESULT</b> data structure. The severity bit in the
structure identifies the following conditions:</p><ul><li><p><span><span>  </span></span>If
the severity bit is set to 0, the method completed successfully.</p>
</li><li><p><span><span>  </span></span>If
the severity bit is set to 1, the method failed and encountered a fatal error.</p>
</li></ul><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.
</p><p>This method SHOULD return the value returned by a call to
the <b>DeviceStatus</b> method on the <b>IWindowsDriverUpdateEntry</b> instance
referred to by the <b>DefaultWindowsDriverUpdateEntry</b> ADM element.</p></div>