NAME

Win32::Process::Memory - read and write memory of other windows process

SYNOPSIS

require Win32::Process::Memory;
my ($proc, $buf, $bytes);

# open process with name = cmd.exe, read-only
$proc = Win32::Process::Memory->new({ name=>'cmd.exe', access=>'read' });
# read offset=0x10000 len=256 into $buf, return how much bytes are readed
$byte=$proc->read(0x10000, 256, $buf);
# close process
undef $proc;

# open process with name = cmd.exe, write-only
$proc = Win32::Process::Memory->new({ name=>'cmd.exe', access=>'write' });
# write $buf into offset=0x10000
$byte=$proc->write(0x10000, $buf);
# close process
undef $proc;

# read and write process with pid = 567
$proc = Win32::Process::Memory->new({ pid=>567 });
# read offset=0x10000 len=256 into $buf, return how much bytes are readed
$byte=$proc->read(0x10000, 256, $buf);
# write $buf into offset=0x10000
$byte=$proc->write(0x10000, $buf);
# close process
undef $proc;

DESCRIPTION

read and write memory of other windows process.

BUGS, REQUESTS, COMMENTS

Please report any requests, suggestions or bugs via http://rt.cpan.org/NoAuth/ReportBug.html?Dist=Win32-Process-Memory

COPYRIGHT AND LICENSE

Copyright 2004 Qing-Jie Zhou <qjzhou@hotmail.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.