<div class="content"><p>The W32TimeQuerySource method returns the current <a href="cb180d77-0c53-490e-9d37-df7576ef5465#gt_76c8df1b-52ef-495d-97d9-7c032b1f6ca5" data-linktype="relative-path">time source</a> of the <a href="cb180d77-0c53-490e-9d37-df7576ef5465#gt_9846d08d-ad98-4bb9-a1e7-1f0bfbdd1113" data-linktype="relative-path">time service</a>. The <a href="cb180d77-0c53-490e-9d37-df7576ef5465#gt_9c5903c1-1477-4181-b451-3ba1e34a0c0c" data-linktype="relative-path">MIDL</a> syntax of this method
is specified as follows.</p><dl>
<dd>
<div><pre> unsigned long W32TimeQuerySource(
   [in] handle_t hBinding,
   [out, string] wchar_t** pwszSource
 );
</pre></div>
</dd></dl><p><b>hBinding: </b><a href="cb180d77-0c53-490e-9d37-df7576ef5465#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> primitive binding
handle, as specified in <a href="https://go.microsoft.com/fwlink/?LinkId=89824" data-linktype="external">[C706]</a>
part 3, sections Interface Definition Language and Stubs.</p><p><b>pwszSource: </b>A pointer to a null-terminated
string that is the name of the time source that the time service is
synchronizing with. If the time service is not synchronizing with any time
source, the string MUST be set to a null-terminated empty string. This string
SHOULD be either the <a href="cb180d77-0c53-490e-9d37-df7576ef5465#gt_1769aec9-237e-44ed-9014-1abb3ec6de6e" data-linktype="relative-path">FQDN</a>
or the IP address of the time source in the form of a string, for example,
&#34;ntp1.nist.gov&#34; or &#34;10.0.0.1&#34;.</p><p><b>Return Values: </b>This method MUST return 0 on
success; on failure, it returns a nonzero <a href="cb180d77-0c53-490e-9d37-df7576ef5465#gt_a0f899ec-e1a5-4e04-8abc-80df987c6fb4" data-linktype="relative-path">error code</a>. The values
transmitted in this field are implementation specific. All nonzero values MUST
be treated as equivalent for the purposes of this protocol.<a id="Appendix_A_Target_42"></a><a aria-label="Product behavior note 42" href="bb576d39-587b-484a-86a4-e1d378cf9497#Appendix_A_42" data-linktype="relative-path">&lt;42&gt;</a></p><p>When W32TimeQuerySource is invoked, the server SHOULD return
the current time source of the time service.<a id="Appendix_A_Target_43"></a><a aria-label="Product behavior note 43" href="bb576d39-587b-484a-86a4-e1d378cf9497#Appendix_A_43" data-linktype="relative-path">&lt;43&gt;</a></p></div>