阅读:1529回复:1
初级问题:ring 3调用ZwQuerySystemInformation失败
delphi代码:
var buf:array[0..12048] of char; dw,ret:ULONG; function ZwQuerySystemInformation( systeminformationclass:ULONG; psysteminformation:pointer; Length:ULONG; ReturnLength:PULONG ):DWORD;stdcall;external 'NTDLL.DLL'; 。。。。。。。。 ret:=ZwQuerySystemInformation(5,@buf[0],12048,@dw); 返回 ret=STATUS_INFO_LENGTH_MISMATCH 为何?????????? [编辑 - 12/8/04 by one] |
|
沙发#
发布于:2004-12-08 13:47
问题找到了:缓冲区太小,要30K多。
[编辑 - 12/8/04 by one] |
|