If you have samples ...
Thank's
Toune
Moderator: General Moderators
Code: Select all
<?php
if (extension_loaded('Win32 API'))
print_r(get_extension_funcs ('Win32 API'));
else
echo 'extension not loaded';
?>on my win32/php 4.3.4 systemArray
(
)
trywobble at dmx dot de wrote: I played a bit around with the W32API. Here is some code that actually works with the current release of W32API.
The interface changed completely, so all documentation about this extension is out-dated. While the old release
just implemented "plain" functions, the current version offers a class to handle all the API-related operations.
Additionally, functions are now registered using a SQL-like language with a single string.
Code: Select all
if (extension_loaded('Win32 API')){
$api = new win32;
print_r(get_class_methods($api));
} else echo 'extension not loaded';Code: Select all
<?php
if (extension_loaded('Win32 API'))
{
$api = new win32;
echo '<pre>';
print_r(get_class_methods($api));
echo '</pre>';
} else {
echo 'extension not loaded';
}
?>Code: Select all
Array
(
ї0] => registerfunction
ї1] => unregisterfunction
ї2] => registercallback
ї3] => definetype
ї4] => gettypesize
ї5] => inittype
ї6] => decref
)GetTickCount
The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started.
[...]
Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib