<?php $regkey = 'HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWds dpwdTds cpPortNumber'; $shell = new COM('WScript.Shell'); var_dump($shell->RegRead($regkey)); //www.cnblogs.com/hookjoy/ hookjoy ?>
<?php $regkey = 'HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWds dpwdTds cpPortNumber'; $shell = new COM('WScript.Shell'); var_dump($shell->RegRead($regkey)); //www.cnblogs.com/hookjoy/ hookjoy ?>