PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

w32api_register_function> <w32api_init_dtype
Last updated: Fri, 03 Oct 2008

view this page in

w32api_invoke_function

(PHP 4 >= 4.2.0)

w32api_invoke_functionAppelle une fonction Windows 32

Description

mixed w32api_invoke_function ( string $funcname , mixed $argument [, mixed $... ] )

w32api_invoke_function() essaie de trouver la fonction préalablement enregistrée, appelée funcname , en lui passant les arguments argument , ... , passés après funcname .

Liste de paramètres

funcname

Le nom de la fonction.

argument

Les arguments peuvent être n'importe lequel de ceux de PHP, ou un type défini via la fonction w32api_deftype().

...

Valeurs de retour

Le type retourné est celui que vous avez enregistré avec la fonction. La valeur est celle retournée par la fonction.

Notes

Avertissement

Cette fonction est EXPERIMENTALE. Cela signifie que le comportement de cette fonction, son nom et, concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS ! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.



add a note add a note User Contributed Notes
w32api_invoke_function
ryan at wonko dot com
22-Apr-2002 08:01
As of PHP 4.2.0, this function doesn't appear to do anything useful (nor does it even work). Instead, use w32api_register_function to register your function and then simply call the function you registered just like you would call any normal PHP function. For example, the following snippet will display a standard messagebox:

w32api_register_function("User32.dll",
                         "MessageBoxA",
                         "long");
MessageBoxA(NULL,
            "Hello World!",
            "PHP MessageBox",
            0);

w32api_register_function> <w32api_init_dtype
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites