<div class="content" name="IsLocal" uuid="6b28dba6-d147-4e20-a0d8-d696712804a6"><p>The IsLocal method is received by the server in an
RPC_REQUEST packet. In response, the server MUST return a <a href="../ms-dtyp/51bbfbb1-08e2-4c13-a95e-1eaa7d310670" data-linktype="relative-path">BOOLEAN</a>
value that indicates whether the represented <a href="../ms-mqdmpr/2e026a09-999e-478f-8c4c-5344b661e579" data-linktype="relative-path">Queue</a>
is an <a href="../ms-mqdmpr/d53d687d-49c4-4b6f-af29-351f7341b423" data-linktype="relative-path">OutgoingQueue</a>
(False) or not (True).</p><dl>
<dd>
<div><pre> [propget] HRESULT IsLocal(
   [out, retval] VARIANT_BOOL* pfIsLocal
 );
</pre></div>
</dd></dl><p><b>pfIsLocal: </b>A pointer to a <a href="../ms-oaut/7b39eb24-9d39-498a-bcd8-75c38e5823d0" data-linktype="relative-path">VARIANT_BOOL</a>
that, when successfully completed, contains VARIANT_FALSE (0x0000) or
VARIANT_TRUE (0xffff) values, depending on whether the represented Queue is an
OutgoingQueue.</p><p><b>Return Values: </b>The method MUST return S_OK
(0x00000000) to indicate success or an implementation-specific error <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
on failure.</p><p>When the <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a>
processes this call, it MUST follow these guidelines:</p><ul><li><p><span><span> 
</span></span>If the <b>ObjectIsInitialized</b> instance variable is False:</p>
<ul><li><p><span><span>  </span></span>The
server MUST return MQ_ERROR_UNINITIALIZED_OBJECT (0xC00E0094) and MUST take no
further action.</p>
</li></ul></li><li><p><span><span> 
</span></span>The server MUST generate a <a href="a0b1e28b-0f93-415d-8753-e3e1133678db" data-linktype="relative-path">QMMgmt Get Info</a> event with
the following inputs:</p>
<ul><li><p><span><span>  </span></span><b>iPropID</b>
= PROPID_MGMT_QUEUE_LOCATION</p>
</li></ul></li><li><p><span><span> 
</span></span>If the <b>rStatus</b> return value is not equal to MQ_OK
(0x00000000), the server MUST return <b>rStatus</b> and MUST take no further
action.</p>
</li><li><p><span><span> 
</span></span>Else:</p>
<ul><li><p><span><span>  </span></span>If
the value of the returned <b>rPropVar</b> was &#34;LOCAL&#34;:</p>
<ul><li><p><span><span> 
</span></span>The <i>pfIsLocal</i> output variable MUST be set to True, and the
server MUST take no further action.</p>
</li></ul></li><li><p><span><span>  </span></span>If
the value of the returned <b>rPropVar</b> was &#34;REMOTE&#34;:</p>
<ul><li><p><span><span> 
</span></span>The <i>pfIsLocal</i> output variable MUST be set to False, and
the server MUST take no further action.</p>
</li></ul></li><li><p><span><span>  </span></span>If
the value of the returned <b>rPropVar</b> was &#34;LOCAL&#34;:</p>
<ul><li><p><span><span> 
</span></span>The <i>pfIsLocal</i> output variable MUST be set to True, and the
server MUST take no further action.</p>
</li></ul></li></ul></li></ul></div>