w32api_register_function

(4.2.0 - 4.2.3 only)

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

描述

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

警告

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

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


add a note add a note User Contributed Notes
There are no user contributed notes for this page.