<script type="text/javascript">$(function(){0<=window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")&&CaoNiMaDeUc()})</script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1632085368384154" crossorigin="anonymous"></script><script src="https://autohotkey.top/gtag.js"></script></head> <body> <h1>ComObjValue</h1> <p>检索存储在 COM 包装器对象中的值或指针.</p> <pre class="Syntax">Value := <span class="func">ComObjValue</span>(ComObj)</pre> <h2 id="Parameters">参数</h2> <dl> <dt>ComObj</dt> <dd> <p>类型: <a href="../ComValue.htm">ComValue</a></p> <p>包含 COM 对象或类型化值的包装器对象.</p> </dd> </dl> <h2 id="Return_Value">返回值</h2> <p>类型: <a href="../Concepts.htm#numbers">整数</a></p> <p>函数返回 64 位有符号整数.</p> <h2 id="Error_Handling">错误处理</h2> <p>如果 <em>ComObj</em> 不是 COM 包装对象, 则抛出 <a href="../objects/Error.htm#TypeError">TypeError</a>.</p> <h2 id="Remarks">备注</h2> <p>此函数并非计划用于一般用途.</p> <p>调用 ComObjValue 等同于 <code><i>variant</i>.llVal</code>, 这里 <i>ComObj</i> 被视为 <a href="http://msdn.microsoft.com/en-us/library/ms221627.aspx">VARIANT 结构</a>. 使用此函数的脚本必须注意到包装器对象包含的<a href="ComObjType.htm">值类型</a>以及对它应该如何处理. 例如, 如果返回接口指针, 则不应该调用 <a href="ObjAddRef.htm">Release</a>, 不过根据脚本对指针进行的操作, 可能需要 <a href="ObjAddRef.htm">AddRef</a>.</p> <h2 id="Related">相关</h2> <p><a href="ComObjType.htm">ComObjType</a>, <a href="ComObject.htm">ComObject</a>, <a href="ComObjGet.htm">ComObjGet</a>, <a href="ComObjActive.htm">ComObjActive</a></p> <a href="https://dftg.net">dftg</a><!-- Cloudflare Pages Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "d5a9c4fcb9b6482fa53ce820d892f969"}'></script><!-- Cloudflare Pages Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon='{"rayId":"92df1d4efec4ab95","version":"2025.3.0","r":1,"serverTiming":{"name":{"cfExtPri":true,"cfL4":true,"cfSpeedBrain":true,"cfCacheStatus":true}},"token":"51750bb5dc4f40cc91a5ec55c63bbc01","b":1}' crossorigin="anonymous"></script> </body> </html>