1.需要加载php扩展
dl("php_w32api.dll");2.从你的dll里面导出函数,假定该函数在dll里面被声明为FuncDll,并且返回值是int类型
w32api_register_function("函数所在的dll",
"FuncDll",
"int");3.好了,现在你可以调用它了
$result = FuncDll();
dl("php_w32api.dll");2.从你的dll里面导出函数,假定该函数在dll里面被声明为FuncDll,并且返回值是int类型
w32api_register_function("函数所在的dll",
"FuncDll",
"int");3.好了,现在你可以调用它了
$result = FuncDll();
你没听过linux 的 .so 文件吗?
就是类似 DLL 的.
dl("php_w32api.dll");
$api = new win32;
$api->registerfunction("long GetTickCount () From Kernel32.dll");
echo $api->GetTickCount();
?>