php调用系统API
来源:互联网 发布:天猫数据分析师 编辑:程序博客网 时间:2024/05/04 01:39
<?php
// Define constants needed, taken from
// Visual Studio/Tools/Winapi/WIN32API.txt
define("MB_OK", 0);
// Load the extension in
dl("php_w32api.dll");//需要php拓展库php_w32api.dll
// Register the GetTickCount function from kernel32.dll
w32api_register_function("kernel32.dll",
"GetTickCount",
"long");
// Register the MessageBoxA function from User32.dll
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
// Get uptime information
$ticks = GetTickCount();
// Convert it to a nicely displayable text
$secs = floor($ticks / 1000);
$mins = floor($secs / 60);
$hours = floor($mins / 60);
$str = sprintf("You have been using your computer for:".
"/r/n %d Milliseconds, or /r/n %d Seconds".
"or /r/n %d mins or/r/n %d hours %d mins.",
$ticks,
$secs,
$mins,
$hours,
$mins - ($hours*60));
// Display a message box with only an OK button and the uptime text
MessageBoxA(NULL,
$str,
"Uptime Information",
MB_OK);
?>
- php调用系统API
- 调用系统API
- 截取系统 API 调用
- 截取系统API调用
- C#调用系统API
- 系统调用API
- 系统API的调用
- API和系统调用
- 系统调用和API
- 截取系统 API 调用
- 系统调用与API
- php调用Google translate_tts api
- php调用google api 天气预报
- PHP如何调用API接口
- php调用face++ API使用
- 用php调用接口api
- PHP调用百度地图API
- php curl调用美团云API
- Unofficial (Preliminary) HTML Help Specification(CHM文件格式)
- C#生成Word文档
- php 回调函数
- INDEX_STATS
- javascript 回调函数
- php调用系统API
- 【Flex】Flex装载多个Module时,出现“TypeError: Error #1034: 强制转换类型失败”的解决方法
- Oracle中的sql语句分页性能测试
- SOCKS协议RFC
- 币多理财助手PC端概况
- fork 炸弹
- 将指定字符串按指定长度进行剪切
- MongoDB 不断发展:发布 1.4 版本,10gen 提供商业支持
- LINUX下获取IP地址和MAC地址