Autor Beitrag
reepo2k
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 138

WIN XP
Borland Delphi 7 Enterprise, Microsoft Visual C++ 6.0 Enterprise, Macromedia Dreamweaver 8
BeitragVerfasst: So 15.05.05 22:43 
Hallo, wie lade ich eine .dll datei (In C++ programmiert) in einen laufenden Prozess?

THX4help!


MfG: reepo2k
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: So 15.05.05 22:46 
Hallo!

Erstmal ist es egal in welcher Programmiersprache eine DLL geschrieben wurde, auf sie zugegriffen wird unter Delphi immer gleich, da es ja eine kompillierte Datei ist:

www.dsdt.info/tutorials/dlls/

Alstar
reepo2k Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 138

WIN XP
Borland Delphi 7 Enterprise, Microsoft Visual C++ 6.0 Enterprise, Macromedia Dreamweaver 8
BeitragVerfasst: So 15.05.05 22:52 
Danke, ich les mir das mal durch.

THX!


MfG: reepo2k


Edit:
Viellicht ist noch zu erwähnen, dass ich das Programm, in das die dll geladen werden soll nicht selber geschrieben habe, somit auch keinen Source habe, in dem ich schreiben kann, dass die dll geladen werden soll.
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: So 15.05.05 22:56 
HÄÄÄÄÄÄÄÄÄ (Deutsches Fragewort ohne "W")?????????????

Du weißt aber schon, wie sone DLL funktioniert und dass man ne Host-Application braucht und so??!

Scheint mir momentan nicht so danach auszusehen ...

Alstar
reepo2k Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 138

WIN XP
Borland Delphi 7 Enterprise, Microsoft Visual C++ 6.0 Enterprise, Macromedia Dreamweaver 8
BeitragVerfasst: So 15.05.05 22:58 
Ist ein wenig schwer zu erkläen.^^

Die dll soll einfach nur geladen werden.
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: So 15.05.05 23:00 
Du musst sie trotzdem irgendwie laden. Und das machst du mit ner normalen Anwendung (EXE) oder mit der Rundll32.exe.

Aber es wäre hilfreich zu wissen wie du da genau was machen möchtest

Alstar
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: So 15.05.05 23:49 
in einer dll stehen normalerweise funktionen und prozeduren, auf die man mit einem programm zugreifen kann. macht also einich keinen sinn, wenn du einem programm sagen willst "lade diese funktion aus der dll und benutze sie, um den wert hier zu verändern" ... anders gesagt: ich kann mir nich vorstellen, dass das geht. Normalerweise lädt man eine dll-procedure so:
ausblenden Delphi-Quelltext
1:
procedure hallo(asd) stdcall; external 'huhu.dll';					

das unter die typendeklaration der form.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Benutzername
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 210

Win XP Pro
Delphi 7 PE, D2005 Prof. SSL
BeitragVerfasst: So 15.05.05 23:53 
Hmmm, ich glaube, er möchte auf DLLInjection oder Wrapper-DLLs hinaus :-?

Versteh ich das richtig? :)
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mo 16.05.05 00:17 
selbst wenn, er wird sich darunter nichts vorstellen können xD (PS: ich mir auch nicht oO was isn das oO )

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
reepo2k Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 138

WIN XP
Borland Delphi 7 Enterprise, Microsoft Visual C++ 6.0 Enterprise, Macromedia Dreamweaver 8
BeitragVerfasst: Mo 16.05.05 11:52 
user profile iconBenutzername hat folgendes geschrieben:
Hmmm, ich glaube, er möchte auf DLLInjection oder Wrapper-DLLs hinaus :-?

Versteh ich das richtig? :)


Jo, genau!

Ich habe hier einen Hook geschrieben (in C++), nun möchte ich den gerne laden.
Ich habe hier auch n Loader, aber eben nicht den Source und wollt ganz gerne meinen eigenen Loader machen.
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 16.05.05 12:57 
www.delphi-forum.de/...lUtil+etc_39250.html

da is auch nen beispiel bei

InjectLibrary heißt die funktion, ist in der uallHook.pas drin
kanns se dir ja anschauen, aber ob das verstehst ist dann ne andere sache

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
reepo2k Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 138

WIN XP
Borland Delphi 7 Enterprise, Microsoft Visual C++ 6.0 Enterprise, Macromedia Dreamweaver 8
BeitragVerfasst: Mo 16.05.05 13:00 
THX, ich werd mein Glück versuchen.