From EDM2
Jump to: navigation, search

Martini (talk) 18:55, 17 October 2016 (CEST)

  • you should know - there is two type of API functions
  • old type - call convention Far16 Pascal
  • new type - call convention Near32 C
  • so DosGetCp is Far16 Pascal
  • DosQueryCp is Near32 C
  • they do almost the same
  • for your reference DosGetCp is ordinal 130 and DosQueryCp is ordinal 291
  • very often C function is implemented as wrapper to Pascal - that is why we have an issue with hi mem addresses (Pascal function can use firs 512M only)