cvs: phpdoc-zh /reference/w32api reference.xml

From: Date: Wed, 19 Feb 2003 10:45:42 +0000
Subject: cvs: phpdoc-zh /reference/w32api reference.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1052@lists.php.net to get a copy of this message
cysoft Wed Feb 19 05:45:42 2003 EDT Added files: /phpdoc-zh/reference/w32api reference.xml Log: cuiyan 2003-2-19 Index: phpdoc-zh/reference/w32api/reference.xml +++ phpdoc-zh/reference/w32api/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <reference id="ref.w32api"> <title>W32api º¯Êý</title> <titleabbrev>W32api</titleabbrev> <partintro> <section id="w32api.intro"> &reftitle.intro; <para> Õâ¸öÊǶÔÓÚ DLL µÄͨÓÃÀ©Õ¹ API¡£ Ëü×î³õÊÇÓÃÀ´ÔÊÐí´Ó PHP ÖзÃÎÊ Win32 API£¬¾¡¹ÜÕâÑùÄãÈÔÈ»¿ÉÒÔͨ¹ýËü·ÃÎÊÆäËû¡¡DLLs¡£ </para> <para> Õâ¸öº¯ÊýÖ§³Öµ±Ç° PHP ±ê×¼µÄÀàÐÍ (strings, booleans, floats, integers ºÍ nulls) ÒÔ¼°ÄãʹÓà <function>w32api_deftype</function> º¯Êý×Ô¶¨ÒåµÄÀàÐÍ¡£ </para> &warn.experimental; </section> <section id="w32api.requirements"> &reftitle.required; <para> Õâ¸öÀ©Õ¹Ö»Äܹ¤×÷ÔÚ Windows ƽ̨Ï¡£ </para> </section> <section id="w32api.installation"> &reftitle.install; &no.install; </section> <section id="w32api.configuration"> &reftitle.runtime; &no.config; </section> <section id="w32api.resources"> &reftitle.resources; <para> Õâ¸ö¿éÕ¹¶¨ÒåÁËÒ»¸ö×ÊÔ´ÀàÐÍ£¬±»ÓÃ×÷Óû§×Ô¶¨ÒåÀàÐÍ¡£Õâ¸öÀàÐ͵ÄÃû³ÆÊÇ<literal>"dynaparm"</literal>. </para> </section> &reference.w32api.constants; <section id="w32api.examples"> &reftitle.examples; <para> Õâ¸öÀý×ÓÑÝʾÈçºÎµÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÒ»¸öÏûÏ¢¶Ô»°¿òÖС£ </para> <example> <title>µÃµ½ÏµÍ³³ÖÐøÔËÐеÄʱ¼ä£¬²¢°ÑËüÏÔʾÔÚÏûÏ¢¶Ô»°¿òÖÐ</title> <programlisting role="php"> <![CDATA[ <?php // Define constants needed, taken from // Visual Studio/Tools/Winapi/WIN32API.txt define("MB_OK", 0); // Load the extension in dl("php_w32api.dll"); // Register the GetTickCount function from kernel32.dll w32api_register_function("kernel32.dll", "GetTickCount", "long"); // Register the MessageBoxA function from User32.dll w32api_register_function("User32.dll", "MessageBoxA", "long"); // Get uptime information $ticks = GetTickCount(); // Convert it to a nicely displayable text $secs = floor($ticks / 1000); $mins = floor($secs / 60); $hours = floor($mins / 60); $str = sprintf("You have been using your computer for:". "\r\n %d Milliseconds, or \r\n %d Seconds". "or \r\n %d mins or\r\n %d hours %d mins.", $ticks, $secs, $mins, $hours, $mins - ($hours*60)); // Display a message box with only an OK button and the uptime text MessageBoxA(NULL, $str, "Uptime Information", MB_OK); ?> ]]> </programlisting> </example> </section> </partintro> &reference.w32api.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.zh (#1052) next »