Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
AnswerRe: DLLs in C# Application Pin
Super Lloyd26-Aug-05 14:06
Super Lloyd26-Aug-05 14:06 
GeneralRe: DLLs in C# Application Pin
amitmohanty26-Aug-05 14:21
amitmohanty26-Aug-05 14:21 
GeneralRe: DLLs in C# Application Pin
Super Lloyd26-Aug-05 14:38
Super Lloyd26-Aug-05 14:38 
QuestionC# wrapper Pin
amitmohanty26-Aug-05 13:38
amitmohanty26-Aug-05 13:38 
AnswerRe: C# wrapper Pin
Super Lloyd26-Aug-05 13:55
Super Lloyd26-Aug-05 13:55 
QuestionConvert double to PointF coord?? Pin
...---...26-Aug-05 13:34
...---...26-Aug-05 13:34 
AnswerRe: Convert double to PointF coord?? Pin
Super Lloyd26-Aug-05 14:00
Super Lloyd26-Aug-05 14:00 
GeneralRe: Convert double to PointF coord?? Pin
...---...26-Aug-05 14:29
...---...26-Aug-05 14:29 
GeneralRe: Convert double to PointF coord?? Pin
Super Lloyd26-Aug-05 14:42
Super Lloyd26-Aug-05 14:42 
GeneralRe: Convert double to PointF coord?? Pin
...---...26-Aug-05 14:58
...---...26-Aug-05 14:58 
GeneralRe: Convert double to PointF coord?? Pin
Daniel Turini26-Aug-05 15:40
Daniel Turini26-Aug-05 15:40 
GeneralRe: Convert double to PointF coord?? Pin
Colin Angus Mackay26-Aug-05 20:03
Colin Angus Mackay26-Aug-05 20:03 
QuestionRegex Pin
surfman1926-Aug-05 13:07
surfman1926-Aug-05 13:07 
AnswerRe: Regex Pin
Uri Lavi26-Aug-05 23:27
Uri Lavi26-Aug-05 23:27 
GeneralRe: Regex Pin
surfman1927-Aug-05 0:04
surfman1927-Aug-05 0:04 
GeneralRe: Regex Pin
Uri Lavi27-Aug-05 1:25
Uri Lavi27-Aug-05 1:25 
GeneralRe: Regex Pin
surfman1927-Aug-05 1:50
surfman1927-Aug-05 1:50 
AnswerRe: Regex Pin
Uri Lavi27-Aug-05 2:39
Uri Lavi27-Aug-05 2:39 
GeneralRe: Regex Pin
surfman1927-Aug-05 9:25
surfman1927-Aug-05 9:25 
GeneralRe: Regex Pin
Uri Lavi27-Aug-05 10:44
Uri Lavi27-Aug-05 10:44 
GeneralRe: Regex Pin
surfman1927-Aug-05 11:14
surfman1927-Aug-05 11:14 
QuestionPretty technical bugger. Pin
ldle26-Aug-05 12:24
ldle26-Aug-05 12:24 
Lets see if you guys can figure this one out.


I have WriteProcessMemory 'ed a path name of a .DLL into a remote process after VAlloc 'ing it.
<b>
Simple so far. Just a pathname in a remote process.</b>

Now I want to create a remote thread in that process using CreateRemoteThread, however, and this is the tricky part, I want to pass the address of LoadLibrary as CreateRemoteThread's starting address. Now I know I could just plug in the real address of my LoadLibrary, however I know this address changes from not only OS to OS version but from DLL version to DLL version. This is so that once the thread is created is starts directly at LoadLibrary, loading the path'ed DLL, and exits the thread when LoadLibrary is finished.

CreateRemoteThread(hProcess, 0, 0, <Address of LoadLibrary>, szRemotePath, 0, &dwTID);


Is there anyway to do this?

I know in C++ I would simply just use &LoadLibrary, however this does not work in C#. Even after PInvocation of LoadLibrary it will not do so. AddressOf doesn't work either.

Thank you in advance, and you'll get another after your answer! Big Grin | :-D

-- modified at 18:32 Friday 26th August, 2005
AnswerRe: Pretty technical bugger. Pin
Mike Dimmick26-Aug-05 13:01
Mike Dimmick26-Aug-05 13:01 
GeneralRe: Pretty technical bugger. Pin
Alomgir Miah26-Aug-05 18:16
Alomgir Miah26-Aug-05 18:16 
Questionform close Pin
mpastchenko26-Aug-05 11:34
mpastchenko26-Aug-05 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.