Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export functions from dll only ordinal

I am working on a DLL and I want that the functions I export to be exported only by ordinal not by name.

Is this possible ? If yes I would like to know how is done.

like image 873
opc0de Avatar asked Mar 28 '13 08:03

opc0de


1 Answers

The only way to get Delphi to mark a function for export is to use the exports directive. And Delphi will always add a named entry to the PE export table for each function that you export. But it's easy enough to give the function no name.

library Project32;

procedure Foo;
begin
end;

exports
  Foo index 1 name '';

begin
end.
like image 182
David Heffernan Avatar answered Oct 07 '22 20:10

David Heffernan