Python CreateFile找不到PhysicalMemory

2024-09-27 00:19:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试访问Windows 2000系统的物理内存(尝试在不使用内存转储工具的情况下执行此操作)。我的理解是我需要使用CreateFile函数来创建一个句柄。我使用了一个旧版本的win32dd来帮助我解决这个问题。网上的其他文档指出我使用“\Device\PhysicalMemory”或“\\.\PhysicalMemory”。不幸的是,我得到了同样的错误。在

Traceback (most recent call last):
   File "testHandles.py", line 101, in (module)
   File "testHandles.py", line 72, in createFileHandle
pywintypes.error: (3, 'CreateFile', 'The system cannot find the path specified.')

实际上,每次运行\\.\PhysicalMemory==3和\Device\PhysicalMemory==2时返回的错误号是不同的。查看pywin32、win32file、createfile、pyhandle和pywintypes没有生成关于不同返回值的信息。在

这是我的密码。我正在使用py2exe在windows2000上运行(是的,它编译成功)。我意识到我可能在DeviceIoControl上也有问题,但现在我正专注于CreateFile。在

^{pr2}$

谢谢你, 剖切


Tags: 工具内存inpydevicewindows系统错误

热门问题