Click here to Skip to main content
15,919,245 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralWindows Memory mangement Pin
ForNow5-Mar-08 14:04
ForNow5-Mar-08 14:04 
GeneralRe: Windows Memory mangement Pin
JudyL_MD6-Mar-08 2:26
JudyL_MD6-Mar-08 2:26 
GeneralRe: Windows Memory mangement Pin
ForNow6-Mar-08 2:47
ForNow6-Mar-08 2:47 
GeneralRe: Windows Memory mangement Pin
JudyL_MD6-Mar-08 2:56
JudyL_MD6-Mar-08 2:56 
GeneralRe: Windows Memory mangement Pin
ForNow6-Mar-08 6:09
ForNow6-Mar-08 6:09 
GeneralRe: Windows Memory mangement Pin
Luc Pattyn6-Mar-08 6:54
sitebuilderLuc Pattyn6-Mar-08 6:54 
GeneralRe: Windows Memory mangement Pin
ForNow6-Mar-08 13:13
ForNow6-Mar-08 13:13 
GeneralRe: Windows Memory mangement Pin
Randor 7-Mar-08 5:54
professional Randor 7-Mar-08 5:54 
On XP SP1 and XP SP2 if the virtual address is (addr < 0x80000000 || addr >= 0xA0000000) then you can attempt to mask the address with 0x1FFFF000 like this:

PHYSICAL_ADDRESS addr;
addr.QuadPart = (ULONGLONG)addr.QuadPart & 0x1FFFF000;

The problem is if the virtual address is (0x80000000 <= addr && addr < 0xA0000000) then you cannot reliably calculate the physical address from ring-3 and must use a driver and call MmGetPhysicalAddress() its possible although with a probability of error.

And it gets worse with Vista and Windows 2003 SP1, because access to \Device\PhysicalMemory is disabled!

-David Delaune
GeneralRe: Windows Memory mangement Pin
Luc Pattyn7-Mar-08 6:23
sitebuilderLuc Pattyn7-Mar-08 6:23 
GeneralRe: Windows Memory mangement Pin
Mike Dimmick7-Mar-08 15:56
Mike Dimmick7-Mar-08 15:56 
GeneralRe: Windows Memory mangement Pin
ForNow8-Mar-08 14:51
ForNow8-Mar-08 14:51 
GeneralRe: Windows Memory mangement Pin
Mike Dimmick9-Mar-08 3:26
Mike Dimmick9-Mar-08 3:26 
GeneralRe: Windows Memory mangement Pin
ForNow9-Mar-08 7:50
ForNow9-Mar-08 7:50 
QuestionDevice Firmware Upgrade (DFU) Pin
Roger Stoltz4-Mar-08 22:39
Roger Stoltz4-Mar-08 22:39 
GeneralSystem Hang while using pen drive Pin
yogesh_kumar_agarwal4-Mar-08 20:18
yogesh_kumar_agarwal4-Mar-08 20:18 
GeneralRe: System Hang while using pen drive Pin
M.Nouri10-Mar-08 4:13
M.Nouri10-Mar-08 4:13 
QuestionBuild a DLL with DDK Pin
Member 41248731-Mar-08 3:41
Member 41248731-Mar-08 3:41 
GeneralRe: Build a DLL with DDK Pin
JudyL_MD3-Mar-08 2:23
JudyL_MD3-Mar-08 2:23 
GeneralRe: Build a DLL with DDK Pin
Member 41248733-Mar-08 8:14
Member 41248733-Mar-08 8:14 
GeneralRe: Build a DLL with DDK Pin
JudyL_MD3-Mar-08 8:43
JudyL_MD3-Mar-08 8:43 
GeneralRe: Build a DLL with DDK Pin
Member 412487322-Mar-08 0:18
Member 412487322-Mar-08 0:18 
GeneralRe: Build a DLL with DDK Pin
JudyL_MD24-Mar-08 4:05
JudyL_MD24-Mar-08 4:05 
GeneralRe: Build a DLL with DDK Pin
Member 412487324-Mar-08 4:43
Member 412487324-Mar-08 4:43 
GeneralRe: Build a DLL with DDK Pin
JudyL_MD24-Mar-08 5:18
JudyL_MD24-Mar-08 5:18 
Generalrobotics..... Pin
kanza azhar29-Feb-08 6:24
kanza azhar29-Feb-08 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.