ZwQueryObject
DbgBreakPoint
DbgUiRemoteBreakin
DbgUserBreakPoint
RtlGetLastWin32Error
我百度的都是C++的.看不懂,Var申明的类型也不一样,比如C++里的PVOID,Delphi里是Pointer.我自己只翻译了一个 ZwQueryObject,还不知道对不对,如下function ZwQueryObject(hwnd:THandle; ObjectInformationClass:ULONG; ObjectInformation:Pointer; ObjectInformationLength:ULONG; ReturnLength:PULONG): integer; stdcall;我就是想知道每个函数的参数,以及返回值,请帮忙用Delphi的语法写出来就可以了(如上面那个function)
会的朋友帮帮忙,谢谢了,
这5个函数都是NTDLL.DLL里的函数
测试OK立即结贴

解决方案 »

  1.   

    兄弟,你至少贴个原型吧。
     C++中Void代表没有返回值,而Delphi中直接用Procedure表示没有返回值,仅此而已,其他的只是数据的转换而已
      

  2.   

    ZwQueryObject
    NTSTATUS ZwQueryObject(
      __in_opt   HANDLE Handle,
      __in       OBJECT_INFORMATION_CLASS ObjectInformationClass,
      __out_opt  PVOID ObjectInformation,
      __in       ULONG ObjectInformationLength,
      __out_opt  PULONG ReturnLength
    );
    地址:http://msdn.microsoft.com/en-us/library/ff567062(v=vs.85).aspx
      

  3.   

    DbgBreakPointvoid WINAPI DbgBreakPoint(
      const TCHAR* pCondition,
      const TCHAR* pFileName,
      INT iLine
    );
    地址:http://msdn.microsoft.com/en-us/library/aa929909.aspx
      

  4.   

    procedure DbgBreakPoint(const pCondition: PChar; const pFileName: PChar; iLine: Integer); stdcall;?