function.w32api-deftype.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 147 行
HTML
147 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Defines a type for use with other w32api_functions</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.w32api.html">W32api Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.w32api-init-dtype.html">w32api_init_dtype</a></div> <div class="up"><a href="ref.w32api.html">W32api Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.w32api-deftype" class="refentry"> <div class="refnamediv"> <h1 class="refname">w32api_deftype</h1> <p class="verinfo">(PHP 4 >= 4.2.0)</p><p class="refpurpose"><span class="refname">w32api_deftype</span> — <span class="dc-title">Defines a type for use with other w32api_functions</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>w32api_deftype</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$typename</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$member1_type</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$member1_name</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$...</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$...</tt></span> ]] )</div> <p class="para rdfs-comment"> You need to call this function if you would like to define a type for a w32api call. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">typename</tt></i></span> <dd> <p class="para"> The name of the type. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">member1_type</tt></i></span> <dd> <p class="para"> A member type can be a user defined type. All the type names are case sensitive. Built in type names should be provided in lowercase. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">member1_name</tt></i></span> <dd> <p class="para"> The member name of <i><tt class="parameter">member1_type</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">...</tt></i></span> <dd> <p class="para"> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">...</tt></i></span> <dd> <p class="para"> </p> </dd> </dt> </dl> </p> <p class="para"> This function takes 2n+1 arguments, where n is the number of members the type has. After that is the type of the member followed by the members name (in pairs). </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 notes"> <h3 class="title">Notes</h3> <div class="warning"><b class="warning">Warning</b><p class="simpara">This function is<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, andsurrounding documentation may change without notice in a future release of PHP.This function should be used at your own risk.</p></div> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.w32api.html">W32api Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.w32api-init-dtype.html">w32api_init_dtype</a></div> <div class="up"><a href="ref.w32api.html">W32api Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?