This site is no longer active and is available for archival purposes only. Registration and login is disabled.

VirtualAlloc() / VirtualCopy()


VirtualAlloc() / VirtualCopy()

Postby MattMadMa » Jan 6, 2003 @ 1:46am

I found some documentation that explains how to access hardware directly in Windows CE 3.0. However, I know Microsoft was supposed to tighten security in future versions (that is Pocket PC 2002...). Is it still possible to use VirtualAlloc() and VirtualCopy() in order to access physical memory in PPC 2002?
MattMadMa
pm Member
 
Posts: 5
Joined: Jan 3, 2003 @ 6:08am


Postby Digby » Jan 6, 2003 @ 2:16am

As far as I know, this is still possible. After all, current PocketPC devices all use Windows CE 3.0 and that was written back in 1999.

There is an MSDN chat scheduled tomorrow hosted by the Windows CE.Net development team. You might drop in and ask them for a definitive answer and if VirtualCopy will still work the same on CE.Net as it does on the PocketPC (CE 3.0).

Info on that chat here: .

A word of warning: a number of us PocketPC game developers have attended these CE chats trying to get info/help with PocketPC issues only to find out that the Windows CE people at MS are not the same bunch as the PocketPC group. They are happy to answer questions about the OS itself but don't know (or at least won't comment) on PocketPC specific things (hardware, GAPI, etc.).
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby MattMadMa » Jan 6, 2003 @ 2:23am

Thanks for the info! I'll try not to forget :). I have another question though, on MSDN, I found this:

The following code example shows how VirtualCopy is called to map a 128-KB region at physical address 0x64000000.

VirtualCopy(
pvDest, (void *)(0x64000000/256), 128*1024,
PAGE_READWRITE | PAGE_PHYSICAL | PAGE_NOCACHE);

Why divide 0x64000000 by 256?
MattMadMa
pm Member
 
Posts: 5
Joined: Jan 3, 2003 @ 6:08am


Postby refractor » Jan 12, 2003 @ 9:59am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum