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

search for in the

w32api_register_function> <w32api_init_dtype
Last updated: Fri, 13 Nov 2009

view this page in

w32api_invoke_function

(PHP 4 >= 4.2.0)

w32api_invoke_function関数名の後ろに指定された引数を指定し、関数 funcname を実行する

説明

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

w32api_invoke_function() は、 funcname という名前の事前に登録された関数を探し、 指定したパラメータを渡します。

パラメータ

funcname

関数の名前。

argument

引数の型は PHP 型のいずれかか、必要に応じて w32api_deftype() で定義された型となります。

...

返り値

返り値の型は、その関数を登録した際に定義したもので、 値はその関数が返す値そのものとなります。

注意

警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。



add a note add a note User Contributed Notes
w32api_invoke_function
ryan at wonko dot com
23-Apr-2002 03: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, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites