Ok, I tried that. BUT... (oh no...)
I get this error: Modification of a read-only value attempted at C:/Perl/site/lib/Win32/API/Type.pm line 195, <DATA> line 164.
Here's my code:
use Win32::API;
my $STANDARD_RIGHTS_REQUIRED = (0x000F0000);
my $SECTION_QUERY = 0x0001;
my $SECTION_MAP_WRITE = 0x0002;
my $SECTION_MAP_READ = 0x0004;
my $SECTION_MAP_EXECUTE = 0x0008;
my $SECTION_EXTEND_SIZE = 0x0010;
my $SECTION_ALL_ACCESS = ($STANDARD_RIGHTS_REQUIRED|$SECTION_Q
+UERY|
$SECTION_MAP_WRITE |$SECTION_MAP
+_READ|
$SECTION_MAP_EXECUTE |$SECTION_EXT
+END_SIZE);
Win32::API->Import('kernel32', 'HANDLE OpenFileMapping(DWORD dwDesired
+Access, BOOL bInheritHandle, LPCTSTR lpName)');
my $foo = OpenFileMapping($SECTION_ALL_ACCESS, 0, "Creatures 3_mem");
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.