Source language: Translate to:

Understanding DllCall plugin

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Understanding DllCall plugin

Postby stevec » Wed Mar 14, 2007 9:08 am

I was wondering if someone might be able to help me understand the DLLCall plugin.

The first field is fairly easy:
Path and filename

The second field:
Exported command from dll to call convention: cdecl

Help here.

the third field:
Parameter string for the called command [Pchar]

Help here also;

The forth field:
Variable for the return string

Is this where you place Neobooks variable to save it: such as [TextEntryX]

Thanks;
Steve Christensen
Steve Christensen
stevec
 
Posts: 223
Joined: Fri Apr 15, 2005 7:33 am
Location: Boise, Idaho

Postby HPW » Wed Mar 14, 2007 10:04 am

Since you are not specific which DllCaller you mean,
the description seems to be from hpwDllCall.

>Parameter string for the called command [Pchar]

The Dll-command you are calling is written to accept a PChar-string
as its parameter. So the Plugin writes the string to a Pchar-variable
and pass its pointer to the Dll command.

>Variable for the return string

This is a simple neobook variable name.
The Plugin gets back the pointer to a Pchar-return string,
reads it and place it in the neobook variable under the given name.

So do you have a development enviroment to develop a DLL with this calling convention?
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Thanks;

Postby stevec » Wed Mar 14, 2007 10:51 am

Yes, I was trying to update the way I was able to get CPU usage inside a pub/application.
The dll file is C:\windows\system32\ntdll.dll
Thats where I was trying, if possible if the DllCall plugin might be able to
get the NtQuerySystemInformation.

Thats where I needed help in trying to place the correct context in the fields.

If this is even possible.

Thanks;
Steve Christensen
Steve Christensen
stevec
 
Posts: 223
Joined: Fri Apr 15, 2005 7:33 am
Location: Boise, Idaho

Postby HPW » Wed Mar 14, 2007 11:30 am

So you are not the author of the DLL and you have no idea of the parameter of the command.

http://msdn2.microsoft.com/en-us/library/ms724509.aspx

With that information you can see that it has more and inkompatible parameters.
So no way with hpwDllCall.

Maybe more luck with the other DLL caller plugins.
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

thanks

Postby stevec » Wed Mar 14, 2007 11:50 am

Thanks for the info.
Steve Christensen
stevec
 
Posts: 223
Joined: Fri Apr 15, 2005 7:33 am
Location: Boise, Idaho


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest