Private Const PROCESS_ALL_ACCESS = &H1F0FFF
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long)
<?
class MyPc
{
public $name;
public $type;
function vod()
{
return $this->name.$this->type.'播放电影';
}
function game()
{
return $this->name.$this->type.'玩游戏';
}
function internet()
{
return "上网";
}
function __construct($name='',$type='')
{
$this->name=$name;
$this->type=$type;
}
function __
<?
class MyFirstClass
{
var $swel;
public $swelc;
function display()
{
echo "this is my first class.";
}
}
$myfirstclass_1=new MyFirstClass();
$myfirstclass_1->swel="php1";
$myfirstclass_1->swelc="php2";
$myfirstclass_1->display();
?>