There is such code on c ++

PIMAGE_SECTION_HEADER PImage; PIMAGE_NT_HEADERS PNTHead; ... PImage=(PIMAGE_SECTION_HEADER)(PNTHead+1); 

How can I translate to Delphi? PNTHead+1 will be the same as Inc(PNTHead) in Delphi?

  • And you try and see, there will be a pointer where you need to specify or not. It's faster and easier than asking ;-) - Vladimir Martyanov
  • It seems to me that such a complex mechanism does not need to be implemented on delphi. Compare address space management in delphi and in c ++. Unfortunately in delphi there is no "direct conversion". You will have to rewrite it. - nick_n_a
  • Expression (PIMAGE_SECTION_HEADER)(PNTHead+1); You can rewrite to c ++ as (PIMAGE_SECTION_HEADER) (((char*)PNTHead) + sizeof(*PNTHead)) and on the Delphi something like PIMAGE_SECTION_HEADER (integer(PNTHead) + sizeof(IMAGE_NT_HEADERS) ) -
  • to NativeInt is necessary to lead in modern versions - teran

0