Jump to content
  • 0

How to load custom DLL ?


diamondjack

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  01/11/17
  • Last Seen:  

Hi, I'm using NEMO to load my custom dll. To load the dll it says I have to put the filename on "NEMO-pre_3p0/Input/dlls.txt".

On "NEMO-pre_3p0/Input/dlls.txt":

//All Lines beginning with // are ignored
//All strings ending with a .dll is taken as the current DLL and lines that follow that doesnt have that pattern are taken as functions.
// To import function by name simply put the name
// To import function by ordinal number put the ordinal following a ':' symbol (like :41 below)
// For better clarity put spaces in front of either types of function imports

test.dll
 _DllMain@12
// :41
 

Where do I put the dll? on the NEMO folder  ? It already tried it.

Here's my custom dll (coded in delphi):

uses
  SysUtils,
  Classes,
  Windows;

{$R *.res}
procedure DllMain(reason: Integer);
begin
  if reason = DLL_PROCESS_ATTACH then
  begin
    MessageBoxA(0,'test','test',0);
  end;
end;

begin
  DllProc := DllMain;
  DllMain(DLL_PROCESS_ATTACH);
end.

Application error when I run the client. How to properly load it ?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...