cvs: phpdoc-zh /reference/w32api reference.xml /reference/w32api/functions w32api-deftype.xml w32api-init-dtype.xml w32api-invoke-function.xml
w32api-register-function.xml w32api-set-call-method.xml
| From: | Dallas Thunder | Date: | Tue, 26 Aug 2003 19:34:20 +0000 |
| Subject: | cvs: phpdoc-zh /reference/w32api reference.xml /reference/w32api/functions w32api-deftype.xml w32api-init-dtype.xml w32api-invoke-function.xml w32api-register-function.xml w32api-set-call-method.xml |
||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1683@lists.php.net to get a copy of this message | ||
dallas Tue Aug 26 15:34:20 2003 EDT
Modified files:
/phpdoc-zh/reference/w32api reference.xml
/phpdoc-zh/reference/w32api/functions w32api-deftype.xml
w32api-init-dtype.xml
w32api-invoke-function.xml
w32api-register-function.xml
w32api-set-call-method.xml
Log:
A few fixes and reformatting.
Index: phpdoc-zh/reference/w32api/reference.xml diff -u phpdoc-zh/reference/w32api/reference.xml:1.5 phpdoc-zh/reference/w32api/reference.xml:1.6 --- phpdoc-zh/reference/w32api/reference.xml:1.5 Fri Aug 15 23:06:06 2003 +++ phpdoc-zh/reference/w32api/reference.xml Tue Aug 26 15:34:19 2003 @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: cysoft $ --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: cysoft Status: ready --> <reference id="ref.w32api"> <title>W32api º¯Êý¿â</title> @@ -10,10 +10,12 @@ <section id="w32api.intro"> &reftitle.intro; <para> -ÕâÊǶÔÓÚ DLL µÄͨÓÃÀ©Õ¹ API¡£ Ëü×î³õÊÇÓÃÀ´ÔÊÐí´Ó PHP ÖзÃÎÊ Win32 API£¬¾¡¹ÜÕâÑùÄãÈÔÈ»¿ÉÒÔͨ¹ýËü·ÃÎÊÆäËû¡¡DLLs¡£ + ÕâÊǶÔÓÚ DLL µÄͨÓÃÀ©Õ¹ API¡£Ëü×î³õÊÇÓÃÀ´ÔÊÐí´Ó PHP ÖзÃÎÊ + Win32 API£¬¾¡¹ÜÕâÑùÄãÈÔÈ»¿ÉÒÔͨ¹ýËü·ÃÎÊÆäËü DLL¡£ </para> <para> -Õâ¸öº¯ÊýÖ§³Öµ±Ç° PHP ±ê×¼µÄÀàÐÍ (strings, booleans, floats,integers ºÍ nulls) ÒÔ¼°ÄãʹÓà <function>w32api_deftype</function> º¯ÊýËù×Ô¶¨ÒåµÄÀàÐÍ¡£ + Õâ¸öº¯ÊýÖ§³Öµ±Ç° PHP ±ê×¼µÄÀàÐÍ£¨string£¬boolean£¬float£¬integer ºÍ null£©ÒÔ¼°ÄãʹÓà + <function>w32api_deftype</function> º¯ÊýËù×Ô¶¨ÒåµÄÀàÐÍ¡£ </para> &warn.experimental; </section> @@ -21,15 +23,15 @@ <section id="w32api.requirements"> &reftitle.required; <para> -Õâ¸öÀ©Õ¹Ö»Äܹ¤×÷ÔÚ Windows ϵͳÖС£ + Õâ¸öÀ©Õ¹Ö»Äܹ¤×÷ÔÚ Windows ϵͳÖС£ </para> </section> - + <section id="w32api.installation"> &reftitle.install; &no.install; </section> - + <section id="w32api.configuration"> &reftitle.runtime; &no.config; @@ -38,16 +40,17 @@ <section id="w32api.resources"> &reftitle.resources; <para> -Õâ¸öÀ©Õ¹¶¨ÒåÁËÒ»¸ö×ÊÔ´ÀàÐÍ£¬±»ÓÃ×÷Óû§×Ô¶¨ÒåÀàÐÍ¡£Õâ¸öÀàÐ͵ÄÃû³ÆÊÇ<literal>"dynaparm"</literal>. + Õâ¸öÀ©Õ¹¶¨ÒåÁËÒ»¸ö×ÊÔ´ÀàÐÍ£¬±»ÓÃ×÷Óû§×Ô¶¨ÒåÀàÐÍ¡£Õâ¸öÀàÐ͵ÄÃû³ÆÊÇ + <literal>"dynaparm"</literal>¡£ </para> </section> &reference.w32api.constants; - + <section id="w32api.examples"> &reftitle.examples; <para> -Õâ¸öÀý×ÓÑÝʾÈçºÎµÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÒ»¸öÏûÏ¢¶Ô»°¿òÖС£ + Õâ¸öÀý×ÓÑÝʾÈçºÎµÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÒ»¸öÏûÏ¢¶Ô»°¿òÖС£ </para> <example> <title>µÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÏûÏ¢¶Ô»°¿òÖÐ</title> @@ -62,10 +65,10 @@ dl("php_w32api.dll"); // Register the GetTickCount function from kernel32.dll -w32api_register_function("kernel32.dll", +w32api_register_function("kernel32.dll", "GetTickCount", "long"); - + // Register the MessageBoxA function from User32.dll w32api_register_function("User32.dll", "MessageBoxA", @@ -89,9 +92,9 @@ $mins - ($hours*60)); // Display a message box with only an OK button and the uptime text -MessageBoxA(NULL, - $str, - "Uptime Information", +MessageBoxA(NULL, + $str, + "Uptime Information", MB_OK); ?> ]]> @@ -100,7 +103,7 @@ </section> </partintro> -&reference.w32api.functions; + &reference.w32api.functions; </reference> <!-- Keep this comment at the end of the file Index: phpdoc-zh/reference/w32api/functions/w32api-deftype.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-deftype.xml:1.4 phpdoc-zh/reference/w32api/functions/w32api-deftype.xml:1.5 --- phpdoc-zh/reference/w32api/functions/w32api-deftype.xml:1.4 Fri Feb 21 10:29:35 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-deftype.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: cysoft $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> <refentry id="function.w32api-deftype"> <refnamediv> <refname>w32api_deftype</refname> @@ -10,18 +9,19 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>bool</type><methodname>w32api_deftype</methodname> - <methodparam><type>string</type><parameter>typename</parameter></methodparam> - <methodparam><type>string</type><parameter>member1_type</parameter></methodparam> - <methodparam><type>string</type><parameter>member1_name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>w32api_deftype</methodname> + <methodparam><type>string</type><parameter>typename</parameter></methodparam> + <methodparam><type>string</type><parameter>member1_type</parameter></methodparam> + <methodparam><type>string</type><parameter>member1_name</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> Èç¹ûÄãÏ£ÍûΪ win32api µ÷Óö¨ÒåÒ»¸öÀàÐÍ£¬ÄÇôÄã¾ÍÐèÒªµ÷Óà - <function>w32api_deftype</function>º¯Êý£®Õâ¸öº¯ÊýʹµÃµ½ 2n+1 ¸ö²ÎÊý£¬n ´ú±í¸ÃÀàÐÍÓжàÉÙ¸ö³ÉÔ±¡£µÚÒ»¸ö²ÎÊýÊÇÕâ¸öÀàÐ͵ÄÃû³Æ¡£ÔÚÕâÖ®ºóµÄÊÇÕâ¸÷ÀàÐͳÉÔ±µÄÃû³Æ£¨ÔÚ¿ÚÀ¨ºÅÖУ©¡£ËùÓеÄÀàÐÍÃû³Æ´óСдÃô¸Ð¡£ÄÚ½¨µÄÀàÐÍÃû³ÆÓ¦¸ÃʹÓÃСд¡£ + <function>w32api_deftype</function>º¯Êý¡£Õâ¸öº¯ÊýʹµÃµ½ 2n+1 ¸ö²ÎÊý£¬n + ´ú±í¸ÃÀàÐÍÓжàÉÙ¸ö³ÉÔ±¡£µÚÒ»¸ö²ÎÊýÊÇÕâ¸öÀàÐ͵ÄÃû³Æ¡£ÔÚÕâÖ®ºóµÄÊÇÕâ¸÷ÀàÐͳÉÔ±µÄÃû³Æ£¨³É¶Ô³öÏÖ£©¡£ËùÓеÄÀàÐÍÃû³Æ´óСдÃô¸Ð¡£ÄÚ½¨µÄÀàÐÍÃû³ÆÓ¦¸ÃʹÓÃСд¡£ &return.success; </para> </refsect1> Index: phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml:1.3 phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml:1.4 --- phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml:1.3 Fri Feb 21 10:29:36 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml Tue Aug 26 15:34:20 2003 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: cysoft $ --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> <refentry id="function.w32api-init-dtype"> <refnamediv> <refname>w32api_init_dtype</refname> <refpurpose> - ´´½¨ÁËÒ»¸öÊý¾ÝÀàÐ͵ÄʵÀý,²¢ÇÒ½«º¯Êý´«ÈëµÄÖµÌîÈëÆäÖÐ. + ´´½¨ÁËÒ»¸öÊý¾ÝÀàÐ͵ÄʵÀý£¬²¢ÇÒ½«º¯Êý´«ÈëµÄÖµÌîÈëÆäÖÐ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>resource</type><methodname>w32api_init_dtype</methodname> - <methodparam><type>string</type><parameter>typename</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>resource</type><methodname>w32api_init_dtype</methodname> + <methodparam><type>string</type><parameter>typename</parameter></methodparam> + <methodparam><type>mixed</type><parameter>value</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> -Õâ¸öº¯Êý´´½¨ÁËÃûΪ - <parameter>typename</parameter> µÄÊý¾ÝÀàÐ͵ÄʵÀý£¬²¢ÇÒÌîÈëÁËÕâÖÖÊý¾ÝÀàÐ͵ÄÊý¾Ý£® ÕâÖÖ <parameter>typename</parameter> ²ÎÊý´óСдÃô¸Ð£®Äã¸ø³öµÄÖµÓ¦¸ÃºÍÄ㶨ÒåµÄ <function>w32api_deftype</function>ÀàÐÍ˳ÐòÒ»Ö£® ·µ»Ø×ÊÔ´µÄÀàÐÍÔòΪ <literal>dynaparm</literal>. + Õâ¸öº¯Êý´´½¨ÁËÃûΪ <parameter>typename</parameter> + µÄÊý¾ÝÀàÐ͵ÄʵÀý£¬²¢ÇÒÌîÈëÁËÕâÖÖÊý¾ÝÀàÐ͵ÄÊý¾Ý¡£ÕâÖÖ + <parameter>typename</parameter> ²ÎÊý´óСдÃô¸Ð¡£Äã¸ø³öµÄÖµÓ¦¸ÃºÍÄ㶨ÒåµÄ + <function>w32api_deftype</function> ÀàÐÍ˳ÐòÒ»Ö¡£·µ»Ø×ÊÔ´µÄÀàÐÍÔòΪ + <literal>dynaparm</literal>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml:1.1 phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml:1.2 --- phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml:1.1 Sat Aug 16 00:37:34 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: cysoft $ --> -<!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: cysoft Status: ready --> <refentry id="function.w32api-invoke-function"> <refnamediv> <refname>w32api_invoke_function</refname> @@ -10,16 +9,18 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>mixed</type><methodname>w32api_invoke_function</methodname> - <methodparam><type>string</type><parameter>funcname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>argument</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>mixed</type><methodname>w32api_invoke_function</methodname> + <methodparam><type>string</type><parameter>funcname</parameter></methodparam> + <methodparam><type>mixed</type><parameter>argument</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> - <function>w32api_invoke_function</function> ³¢ÊÔ²éÕÒÒ»¸ö×¢²áΪ˽Óеĺ¯Êý, ÃûΪ <parameter>funcname</parameter> µÄº¯Êý, ÐèÒªÌṩ´«µÝµÄ²ÎÊý¡£·µ»ØµÄÀàÐÍÊÇÄãÔÚ×¢²áº¯Êýʱָ¶¨µÄ, ÖµÔòÊÇÓͺ¯Êý×ÔÉí·µ»ØµÄ.ÈκβÎÊýµÄÀàÐÍ¿ÉÒÔÊÇ PHP ÀàÐÍÈç¹ûÐèÒª»¹¿ÉÒÔʹÓà - <function>w32api_deftype</function> º¯Êý¶¨Òå. + <function>w32api_invoke_function</function> + ³¢ÊÔ²éÕÒÒ»¸ö×¢²áΪ˽Óеĺ¯Êý£¬ÃûΪ <parameter>funcname</parameter> + µÄº¯Êý£¬ÐèÒªÌṩ´«µÝµÄ²ÎÊý¡£·µ»ØµÄÀàÐÍÊÇÄãÔÚ×¢²áº¯Êýʱָ¶¨µÄ£¬ÖµÔòÊÇÓɺ¯Êý×ÔÉí·µ»ØµÄ¡£ÈκβÎÊýµÄÀàÐÍ¿ÉÒÔÊÇ + PHP ÀàÐÍ£¬Èç¹ûÐèÒª»¹¿ÉÒÔʹÓà <function>w32api_deftype</function> º¯Êý¶¨Òå¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/w32api/functions/w32api-register-function.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-register-function.xml:1.1 phpdoc-zh/reference/w32api/functions/w32api-register-function.xml:1.2 --- phpdoc-zh/reference/w32api/functions/w32api-register-function.xml:1.1 Sat Aug 16 00:52:41 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-register-function.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> -<!-- $Author: cysoft $ --> -<!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: cysoft Status: ready --> <refentry id="function.w32api-register-function"> <refnamediv> <refname>w32api_register_function</refname> @@ -10,17 +9,19 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>bool</type><methodname>w32api_register_function</methodname> - <methodparam><type>string</type><parameter>library</parameter></methodparam> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - <methodparam><type>string</type><parameter>return_type</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>w32api_register_function</methodname> + <methodparam><type>string</type><parameter>library</parameter></methodparam> + <methodparam><type>string</type><parameter>function_name</parameter></methodparam> + <methodparam><type>string</type><parameter>return_type</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> - Õâ¸öº¯Êý³¢ÊÔÔÚ <parameter>libary</parameter> ÖвéÕÒÒÔ¸öÃûΪ <parameter>function_name</parameter> µÄº¯Êý - ²¢ÇÒ³¢ÊÔ°ÑËüµ¼Èë PHP. Õâ¸öº¯Êý½«Ê¹Óà <parameter>return_type</parameter> ÀàÐͱ»×¢²á. Õâ¸öÀàÐÍ¿ÉÒÔÊÇÒ»¸ö±ê×¼µÄ PHP ÀàÐÍ, »òÕßʹÓà <function>w32api_deftype</function> º¯Êý¶¨ÒåÀàÐÍ. - ËùÓеÄÃû³Æ´óСдÃô¸Ð.ÄÚ½¨µÄº¯ÊýʹÓÃСд×Öĸ . + Õâ¸öº¯Êý³¢ÊÔÔÚ <parameter>libary</parameter> ÖвéÕÒÒ»¸öÃûΪ + <parameter>function_name</parameter> µÄº¯Êý²¢ÇÒ³¢ÊÔ°ÑËüµ¼Èë PHP¡£Õâ¸öº¯Êý½«Ê¹Óà + <parameter>return_type</parameter> ÀàÐͱ»×¢²á¡£Õâ¸öÀàÐÍ¿ÉÒÔÊÇÒ»¸ö±ê×¼µÄ + PHP ÀàÐÍ£¬»òÕßʹÓà <function>w32api_deftype</function> + º¯Êý¶¨ÒåÀàÐÍ¡£ËùÓеÄÃû³Æ´óСдÃô¸Ð£¬ÄÚ½¨µÄº¯ÊýʹÓÃСд×Öĸ¡£ &return.success; </para> </refsect1> Index: phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml:1.3 phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml:1.4 --- phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml:1.3 Fri Feb 21 10:29:36 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: cysoft $ --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> <refentry id="function.w32api-set-call-method"> <refnamediv> <refname>w32api_set_call_method</refname> @@ -10,14 +9,16 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>void</type><methodname>w32api_set_call_method</methodname> - <methodparam><type>int</type><parameter>method</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; - <para>Õâ¸öº¯ÊýÉèÖÃÁ˵÷Ó÷½·¨µÄÀàÐÍ£®²ÎÊýÄÚÈÝ¿ÉÒÔÊÇ¡¡<constant>DC_CALL_CDECL</constant>¡¡»ò - <constant>DC_CALL_STD</constant>¡¡ÖеÄÒ»ÖÖ£® ´ËÀ©Õ¹µÄĬÈÏÖµÊÇ - <constant>DC_CALL_STD</constant>. + <methodsynopsis> + <type>void</type><methodname>w32api_set_call_method</methodname> + <methodparam><type>int</type><parameter>method</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + Õâ¸öº¯ÊýÉèÖÃÁ˵÷Ó÷½·¨µÄÀàÐÍ¡£²ÎÊýÄÚÈÝ¿ÉÒÔÊÇ + <constant>DC_CALL_CDECL</constant> »ò + <constant>DC_CALL_STD</constant> ÖеÄÒ»ÖÖ¡£´ËÀ©Õ¹µÄĬÈÏÖµÊÇ + <constant>DC_CALL_STD</constant>¡£ </para> </refsect1> </refentry>
Index: phpdoc-zh/reference/w32api/reference.xml diff -u phpdoc-zh/reference/w32api/reference.xml:1.5 phpdoc-zh/reference/w32api/reference.xml:1.6 --- phpdoc-zh/reference/w32api/reference.xml:1.5 Fri Aug 15 23:06:06 2003 +++ phpdoc-zh/reference/w32api/reference.xml Tue Aug 26 15:34:19 2003 @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: cysoft $ --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: cysoft Status: ready --> <reference id="ref.w32api"> <title>W32api º¯Êý¿â</title> @@ -10,10 +10,12 @@ <section id="w32api.intro"> &reftitle.intro; <para> -ÕâÊǶÔÓÚ DLL µÄͨÓÃÀ©Õ¹ API¡£ Ëü×î³õÊÇÓÃÀ´ÔÊÐí´Ó PHP ÖзÃÎÊ Win32 API£¬¾¡¹ÜÕâÑùÄãÈÔÈ»¿ÉÒÔͨ¹ýËü·ÃÎÊÆäËû¡¡DLLs¡£ + ÕâÊǶÔÓÚ DLL µÄͨÓÃÀ©Õ¹ API¡£Ëü×î³õÊÇÓÃÀ´ÔÊÐí´Ó PHP ÖзÃÎÊ + Win32 API£¬¾¡¹ÜÕâÑùÄãÈÔÈ»¿ÉÒÔͨ¹ýËü·ÃÎÊÆäËü DLL¡£ </para> <para> -Õâ¸öº¯ÊýÖ§³Öµ±Ç° PHP ±ê×¼µÄÀàÐÍ (strings, booleans, floats,integers ºÍ nulls) ÒÔ¼°ÄãʹÓà <function>w32api_deftype</function> º¯ÊýËù×Ô¶¨ÒåµÄÀàÐÍ¡£ + Õâ¸öº¯ÊýÖ§³Öµ±Ç° PHP ±ê×¼µÄÀàÐÍ£¨string£¬boolean£¬float£¬integer ºÍ null£©ÒÔ¼°ÄãʹÓà + <function>w32api_deftype</function> º¯ÊýËù×Ô¶¨ÒåµÄÀàÐÍ¡£ </para> &warn.experimental; </section> @@ -21,15 +23,15 @@ <section id="w32api.requirements"> &reftitle.required; <para> -Õâ¸öÀ©Õ¹Ö»Äܹ¤×÷ÔÚ Windows ϵͳÖС£ + Õâ¸öÀ©Õ¹Ö»Äܹ¤×÷ÔÚ Windows ϵͳÖС£ </para> </section> - + <section id="w32api.installation"> &reftitle.install; &no.install; </section> - + <section id="w32api.configuration"> &reftitle.runtime; &no.config; @@ -38,16 +40,17 @@ <section id="w32api.resources"> &reftitle.resources; <para> -Õâ¸öÀ©Õ¹¶¨ÒåÁËÒ»¸ö×ÊÔ´ÀàÐÍ£¬±»ÓÃ×÷Óû§×Ô¶¨ÒåÀàÐÍ¡£Õâ¸öÀàÐ͵ÄÃû³ÆÊÇ<literal>"dynaparm"</literal>. + Õâ¸öÀ©Õ¹¶¨ÒåÁËÒ»¸ö×ÊÔ´ÀàÐÍ£¬±»ÓÃ×÷Óû§×Ô¶¨ÒåÀàÐÍ¡£Õâ¸öÀàÐ͵ÄÃû³ÆÊÇ + <literal>"dynaparm"</literal>¡£ </para> </section> &reference.w32api.constants; - + <section id="w32api.examples"> &reftitle.examples; <para> -Õâ¸öÀý×ÓÑÝʾÈçºÎµÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÒ»¸öÏûÏ¢¶Ô»°¿òÖС£ + Õâ¸öÀý×ÓÑÝʾÈçºÎµÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÒ»¸öÏûÏ¢¶Ô»°¿òÖС£ </para> <example> <title>µÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÏûÏ¢¶Ô»°¿òÖÐ</title> @@ -62,10 +65,10 @@ dl("php_w32api.dll"); // Register the GetTickCount function from kernel32.dll -w32api_register_function("kernel32.dll", +w32api_register_function("kernel32.dll", "GetTickCount", "long"); - + // Register the MessageBoxA function from User32.dll w32api_register_function("User32.dll", "MessageBoxA", @@ -89,9 +92,9 @@ $mins - ($hours*60)); // Display a message box with only an OK button and the uptime text -MessageBoxA(NULL, - $str, - "Uptime Information", +MessageBoxA(NULL, + $str, + "Uptime Information", MB_OK); ?> ]]> @@ -100,7 +103,7 @@ </section> </partintro> -&reference.w32api.functions; + &reference.w32api.functions; </reference> <!-- Keep this comment at the end of the file Index: phpdoc-zh/reference/w32api/functions/w32api-deftype.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-deftype.xml:1.4 phpdoc-zh/reference/w32api/functions/w32api-deftype.xml:1.5 --- phpdoc-zh/reference/w32api/functions/w32api-deftype.xml:1.4 Fri Feb 21 10:29:35 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-deftype.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: cysoft $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> <refentry id="function.w32api-deftype"> <refnamediv> <refname>w32api_deftype</refname> @@ -10,18 +9,19 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>bool</type><methodname>w32api_deftype</methodname> - <methodparam><type>string</type><parameter>typename</parameter></methodparam> - <methodparam><type>string</type><parameter>member1_type</parameter></methodparam> - <methodparam><type>string</type><parameter>member1_name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>w32api_deftype</methodname> + <methodparam><type>string</type><parameter>typename</parameter></methodparam> + <methodparam><type>string</type><parameter>member1_type</parameter></methodparam> + <methodparam><type>string</type><parameter>member1_name</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> Èç¹ûÄãÏ£ÍûΪ win32api µ÷Óö¨ÒåÒ»¸öÀàÐÍ£¬ÄÇôÄã¾ÍÐèÒªµ÷Óà - <function>w32api_deftype</function>º¯Êý£®Õâ¸öº¯ÊýʹµÃµ½ 2n+1 ¸ö²ÎÊý£¬n ´ú±í¸ÃÀàÐÍÓжàÉÙ¸ö³ÉÔ±¡£µÚÒ»¸ö²ÎÊýÊÇÕâ¸öÀàÐ͵ÄÃû³Æ¡£ÔÚÕâÖ®ºóµÄÊÇÕâ¸÷ÀàÐͳÉÔ±µÄÃû³Æ£¨ÔÚ¿ÚÀ¨ºÅÖУ©¡£ËùÓеÄÀàÐÍÃû³Æ´óСдÃô¸Ð¡£ÄÚ½¨µÄÀàÐÍÃû³ÆÓ¦¸ÃʹÓÃСд¡£ + <function>w32api_deftype</function>º¯Êý¡£Õâ¸öº¯ÊýʹµÃµ½ 2n+1 ¸ö²ÎÊý£¬n + ´ú±í¸ÃÀàÐÍÓжàÉÙ¸ö³ÉÔ±¡£µÚÒ»¸ö²ÎÊýÊÇÕâ¸öÀàÐ͵ÄÃû³Æ¡£ÔÚÕâÖ®ºóµÄÊÇÕâ¸÷ÀàÐͳÉÔ±µÄÃû³Æ£¨³É¶Ô³öÏÖ£©¡£ËùÓеÄÀàÐÍÃû³Æ´óСдÃô¸Ð¡£ÄÚ½¨µÄÀàÐÍÃû³ÆÓ¦¸ÃʹÓÃСд¡£ &return.success; </para> </refsect1> Index: phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml:1.3 phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml:1.4 --- phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml:1.3 Fri Feb 21 10:29:36 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-init-dtype.xml Tue Aug 26 15:34:20 2003 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: cysoft $ --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> <refentry id="function.w32api-init-dtype"> <refnamediv> <refname>w32api_init_dtype</refname> <refpurpose> - ´´½¨ÁËÒ»¸öÊý¾ÝÀàÐ͵ÄʵÀý,²¢ÇÒ½«º¯Êý´«ÈëµÄÖµÌîÈëÆäÖÐ. + ´´½¨ÁËÒ»¸öÊý¾ÝÀàÐ͵ÄʵÀý£¬²¢ÇÒ½«º¯Êý´«ÈëµÄÖµÌîÈëÆäÖÐ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>resource</type><methodname>w32api_init_dtype</methodname> - <methodparam><type>string</type><parameter>typename</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>resource</type><methodname>w32api_init_dtype</methodname> + <methodparam><type>string</type><parameter>typename</parameter></methodparam> + <methodparam><type>mixed</type><parameter>value</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> -Õâ¸öº¯Êý´´½¨ÁËÃûΪ - <parameter>typename</parameter> µÄÊý¾ÝÀàÐ͵ÄʵÀý£¬²¢ÇÒÌîÈëÁËÕâÖÖÊý¾ÝÀàÐ͵ÄÊý¾Ý£® ÕâÖÖ <parameter>typename</parameter> ²ÎÊý´óСдÃô¸Ð£®Äã¸ø³öµÄÖµÓ¦¸ÃºÍÄ㶨ÒåµÄ <function>w32api_deftype</function>ÀàÐÍ˳ÐòÒ»Ö£® ·µ»Ø×ÊÔ´µÄÀàÐÍÔòΪ <literal>dynaparm</literal>. + Õâ¸öº¯Êý´´½¨ÁËÃûΪ <parameter>typename</parameter> + µÄÊý¾ÝÀàÐ͵ÄʵÀý£¬²¢ÇÒÌîÈëÁËÕâÖÖÊý¾ÝÀàÐ͵ÄÊý¾Ý¡£ÕâÖÖ + <parameter>typename</parameter> ²ÎÊý´óСдÃô¸Ð¡£Äã¸ø³öµÄÖµÓ¦¸ÃºÍÄ㶨ÒåµÄ + <function>w32api_deftype</function> ÀàÐÍ˳ÐòÒ»Ö¡£·µ»Ø×ÊÔ´µÄÀàÐÍÔòΪ + <literal>dynaparm</literal>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml:1.1 phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml:1.2 --- phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml:1.1 Sat Aug 16 00:37:34 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-invoke-function.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: cysoft $ --> -<!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: cysoft Status: ready --> <refentry id="function.w32api-invoke-function"> <refnamediv> <refname>w32api_invoke_function</refname> @@ -10,16 +9,18 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>mixed</type><methodname>w32api_invoke_function</methodname> - <methodparam><type>string</type><parameter>funcname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>argument</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>mixed</type><methodname>w32api_invoke_function</methodname> + <methodparam><type>string</type><parameter>funcname</parameter></methodparam> + <methodparam><type>mixed</type><parameter>argument</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> - <function>w32api_invoke_function</function> ³¢ÊÔ²éÕÒÒ»¸ö×¢²áΪ˽Óеĺ¯Êý, ÃûΪ <parameter>funcname</parameter> µÄº¯Êý, ÐèÒªÌṩ´«µÝµÄ²ÎÊý¡£·µ»ØµÄÀàÐÍÊÇÄãÔÚ×¢²áº¯Êýʱָ¶¨µÄ, ÖµÔòÊÇÓͺ¯Êý×ÔÉí·µ»ØµÄ.ÈκβÎÊýµÄÀàÐÍ¿ÉÒÔÊÇ PHP ÀàÐÍÈç¹ûÐèÒª»¹¿ÉÒÔʹÓà - <function>w32api_deftype</function> º¯Êý¶¨Òå. + <function>w32api_invoke_function</function> + ³¢ÊÔ²éÕÒÒ»¸ö×¢²áΪ˽Óеĺ¯Êý£¬ÃûΪ <parameter>funcname</parameter> + µÄº¯Êý£¬ÐèÒªÌṩ´«µÝµÄ²ÎÊý¡£·µ»ØµÄÀàÐÍÊÇÄãÔÚ×¢²áº¯Êýʱָ¶¨µÄ£¬ÖµÔòÊÇÓɺ¯Êý×ÔÉí·µ»ØµÄ¡£ÈκβÎÊýµÄÀàÐÍ¿ÉÒÔÊÇ + PHP ÀàÐÍ£¬Èç¹ûÐèÒª»¹¿ÉÒÔʹÓà <function>w32api_deftype</function> º¯Êý¶¨Òå¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/w32api/functions/w32api-register-function.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-register-function.xml:1.1 phpdoc-zh/reference/w32api/functions/w32api-register-function.xml:1.2 --- phpdoc-zh/reference/w32api/functions/w32api-register-function.xml:1.1 Sat Aug 16 00:52:41 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-register-function.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> -<!-- $Author: cysoft $ --> -<!-- EN-Revision: 1.4 Maintainer: cysoft Status: ready --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: cysoft Status: ready --> <refentry id="function.w32api-register-function"> <refnamediv> <refname>w32api_register_function</refname> @@ -10,17 +9,19 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>bool</type><methodname>w32api_register_function</methodname> - <methodparam><type>string</type><parameter>library</parameter></methodparam> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - <methodparam><type>string</type><parameter>return_type</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>w32api_register_function</methodname> + <methodparam><type>string</type><parameter>library</parameter></methodparam> + <methodparam><type>string</type><parameter>function_name</parameter></methodparam> + <methodparam><type>string</type><parameter>return_type</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; <para> - Õâ¸öº¯Êý³¢ÊÔÔÚ <parameter>libary</parameter> ÖвéÕÒÒÔ¸öÃûΪ <parameter>function_name</parameter> µÄº¯Êý - ²¢ÇÒ³¢ÊÔ°ÑËüµ¼Èë PHP. Õâ¸öº¯Êý½«Ê¹Óà <parameter>return_type</parameter> ÀàÐͱ»×¢²á. Õâ¸öÀàÐÍ¿ÉÒÔÊÇÒ»¸ö±ê×¼µÄ PHP ÀàÐÍ, »òÕßʹÓà <function>w32api_deftype</function> º¯Êý¶¨ÒåÀàÐÍ. - ËùÓеÄÃû³Æ´óСдÃô¸Ð.ÄÚ½¨µÄº¯ÊýʹÓÃСд×Öĸ . + Õâ¸öº¯Êý³¢ÊÔÔÚ <parameter>libary</parameter> ÖвéÕÒÒ»¸öÃûΪ + <parameter>function_name</parameter> µÄº¯Êý²¢ÇÒ³¢ÊÔ°ÑËüµ¼Èë PHP¡£Õâ¸öº¯Êý½«Ê¹Óà + <parameter>return_type</parameter> ÀàÐͱ»×¢²á¡£Õâ¸öÀàÐÍ¿ÉÒÔÊÇÒ»¸ö±ê×¼µÄ + PHP ÀàÐÍ£¬»òÕßʹÓà <function>w32api_deftype</function> + º¯Êý¶¨ÒåÀàÐÍ¡£ËùÓеÄÃû³Æ´óСдÃô¸Ð£¬ÄÚ½¨µÄº¯ÊýʹÓÃСд×Öĸ¡£ &return.success; </para> </refsect1> Index: phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml diff -u phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml:1.3 phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml:1.4 --- phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml:1.3 Fri Feb 21 10:29:36 2003 +++ phpdoc-zh/reference/w32api/functions/w32api-set-call-method.xml Tue Aug 26 15:34:20 2003 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: cysoft $ --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: cysoft Status: ready --> -<!-- splitted from ./en/functions/w32api.xml, last change in rev 1.1 --> <refentry id="function.w32api-set-call-method"> <refnamediv> <refname>w32api_set_call_method</refname> @@ -10,14 +9,16 @@ </refnamediv> <refsect1> <title>ÃèÊö</title> - <methodsynopsis> - <type>void</type><methodname>w32api_set_call_method</methodname> - <methodparam><type>int</type><parameter>method</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; - <para>Õâ¸öº¯ÊýÉèÖÃÁ˵÷Ó÷½·¨µÄÀàÐÍ£®²ÎÊýÄÚÈÝ¿ÉÒÔÊÇ¡¡<constant>DC_CALL_CDECL</constant>¡¡»ò - <constant>DC_CALL_STD</constant>¡¡ÖеÄÒ»ÖÖ£® ´ËÀ©Õ¹µÄĬÈÏÖµÊÇ - <constant>DC_CALL_STD</constant>. + <methodsynopsis> + <type>void</type><methodname>w32api_set_call_method</methodname> + <methodparam><type>int</type><parameter>method</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + Õâ¸öº¯ÊýÉèÖÃÁ˵÷Ó÷½·¨µÄÀàÐÍ¡£²ÎÊýÄÚÈÝ¿ÉÒÔÊÇ + <constant>DC_CALL_CDECL</constant> »ò + <constant>DC_CALL_STD</constant> ÖеÄÒ»ÖÖ¡£´ËÀ©Õ¹µÄĬÈÏÖµÊÇ + <constant>DC_CALL_STD</constant>¡£ </para> </refsect1> </refentry>