Recent

Author Topic: How to export a library function by ordinal only ?  (Read 1095 times)

440bx

  • Hero Member
  • *****
  • Posts: 1259
How to export a library function by ordinal only ?
« on: December 10, 2018, 07:46:23 am »
Hello,

What is the syntax in FPC to export a library function by ordinal only ?

The syntax to export by name is well documented but, I have not been able to find the correct syntax to export by ordinal only.  If someone can show what the syntax is to do that (a one-liner example), that would be great.

thank you.
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

HeavyUser

  • Sr. Member
  • ****
  • Posts: 262
Re: How to export a library function by ordinal only ?
« Reply #1 on: December 10, 2018, 07:59:48 am »
Hello,

What is the syntax in FPC to export a library function by ordinal only ?

The syntax to export by name is well documented but, I have not been able to find the correct syntax to export by ordinal only.  If someone can show what the syntax is to do that (a one-liner example), that would be great.

thank you.
http://101.lv/learn/delphi/ch19.htm
search for "Exporting by Ordinal Value" in your browser to find it faster.

440bx

  • Hero Member
  • *****
  • Posts: 1259
Re: How to export a library function by ordinal only ?
« Reply #2 on: December 10, 2018, 08:22:04 am »
http://101.lv/learn/delphi/ch19.htm
search for "Exporting by Ordinal Value" in your browser to find it faster.
Unfortunately, that exports by name and by ordinal.  I'd like to have the syntax of how to export by ordinal only.

If you have an example of how that is done, that would be very nice.

Thank you.
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

HeavyUser

  • Sr. Member
  • ****
  • Posts: 262
Re: How to export a library function by ordinal only ?
« Reply #3 on: December 10, 2018, 01:04:25 pm »
http://101.lv/learn/delphi/ch19.htm
search for "Exporting by Ordinal Value" in your browser to find it faster.
Unfortunately, that exports by name and by ordinal.  I'd like to have the syntax of how to export by ordinal only.

If you have an example of how that is done, that would be very nice.

Thank you.
https://stackoverflow.com/questions/15677327/export-functions-from-dll-only-ordinal

440bx

  • Hero Member
  • *****
  • Posts: 1259
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.