W32api 函数
PHP Manual

w32api_register_function

(PHP 4 >= 4.2.0)

w32api_register_function从函数库中使用 PHP 注册一个函数 function_name

说明

bool w32api_register_function ( string $library , string $function_name , string $return_type )
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。

这个函数尝试在 libary 中查找一个名为 function_name 的函数并且尝试把它导入 PHP。这个函数将使用 return_type 类型被注册。这个类型可以是一个标准的 PHP 类型,或者使用 w32api_deftype() 函数定义类型。所有的名称大小写敏感,内建的函数使用小写字母。 成功时返回 TRUE, 或者在失败时返回 FALSE

参数

library

The library name, as a string.

function_name

The function name, as a string.

return_type

The function will be registered with the given return_type. This type can be a generic PHP type, or a type defined with w32api_deftype(). All type names are case sensitive. Built in type names should be provided in lowercase.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

注释

Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。


W32api 函数
PHP Manual