Search found 22 matches

by mikecaliber
Thu Nov 17, 2005 7:26 pm
Forum: Coding Questions
Topic: anyone familiar with DetourCreateProcessWithDllA() Sparkie?
Replies: 21
Views: 4887

Procedure InjectDLL(DllFileName$,ProcessID.l)
Protected Result.l,DllFileName$,Size.l,Process.l,RemoteMem.l,BytesWritten.l,LoadLibrary_Address.l,hThread.l
Result=#False
Size=Len(DllFileName$)+1
Process=OpenProcess_(#PROCESS_ALL_ACCESS,0,ProcessID)
If Process
RemoteMem=VirtualAllocEx_(Process ...
by mikecaliber
Tue Nov 15, 2005 9:38 pm
Forum: Announcement
Topic: Irrlicht 3D Engine for PureBasic! *Official Thread*
Replies: 80
Views: 31665

Cannot Compile Irrlicht in PB-

Nevermind, problem solved... it compiled.. I needed to update pb to latest version.

However, the "ship" and "planet" aren't very ship or planet looking and the textures on them don't make sense. anyone else agree?

ALso, are there any more examples or tutorials to use this?

best,
mike


Source ...
by mikecaliber
Tue Nov 15, 2005 8:56 pm
Forum: Coding Questions
Topic: how to write mouse hook procedure with all application !!
Replies: 3
Views: 1750

you can do a google search for microsoft virtual keycodes

not sure if this is what you need but it works for these instances:


If GetAsyncKeyState_(#VK_LBUTTON)<>0

will detect if the left mouse button is down, no matter which window has the focus. #VK_LBUTTON is the virtual key code. There are ...
by mikecaliber
Tue Nov 15, 2005 8:53 pm
Forum: Coding Questions
Topic: anyone familiar with DetourCreateProcessWithDllA() Sparkie?
Replies: 21
Views: 4887

http://forums.purebasic.com/english/viewtopic.php?t=15313
http://forums.purebasic.com/english/viewtopic.php?t=16676

If you're going to buy me a detours license, I'll help converting the examples
to PB ;)

no need to go to extremes! i figured it out-

basically i "polled" once i ran the program ...
by mikecaliber
Thu Nov 10, 2005 5:26 pm
Forum: Coding Questions
Topic: anyone familiar with DetourCreateProcessWithDllA() Sparkie?
Replies: 21
Views: 4887

bump for more views and replies.

surely someone in here has injected .dll's before. nobody here is experienced with this?

best,
cal
by mikecaliber
Wed Nov 09, 2005 11:46 pm
Forum: Coding Questions
Topic: anyone familiar with DetourCreateProcessWithDllA() Sparkie?
Replies: 21
Views: 4887

yes. this is what i need. to be able to inject the .dll into the memory of the .exe just as it runs. some people would call it a "loader". is there code for dll injection of loaders already. perhaps i am doing a search in the wrong way. i am sure that the api call i gave here is the correct one ...
by mikecaliber
Tue Nov 08, 2005 5:56 pm
Forum: Coding Questions
Topic: anyone familiar with DetourCreateProcessWithDllA() Sparkie?
Replies: 21
Views: 4887

anyone familiar with DetourCreateProcessWithDllA() Sparkie?

Anyone who has any knowledge of how to do the following:

I want to be able to inject a .dll into a program when it launches.

The .dll needs to be injected pretty much right at the moment the program .exe runs.

at any rate i found the DetourCreateProcessWithDllA() WINAPI function.

can someone ...
by mikecaliber
Tue Nov 08, 2005 5:28 pm
Forum: Coding Questions
Topic: to sparkie or winapi gurus- mouse events and winapi-
Replies: 7
Views: 2956

Hi Mike. :)

I'm not exactly sure what your needs are here, but is this close to what you're looking for?
If OpenWindow(0, 0, 0, 200, 200, #PB_Window_SystemMenu, "Test") And CreateGadgetList(WindowID(0))
RunProgram("Notepad.exe")
Delay(500)
hNotepad = FindWindow_("Notepad", "Untitled ...
by mikecaliber
Tue Nov 01, 2005 10:40 pm
Forum: Coding Questions
Topic: to sparkie or winapi gurus- mouse events and winapi-
Replies: 7
Views: 2956

droopy,

i don't see how i can simulate what i asked with your library. (nice library, btw!)

what i want is to simulate that i am moving the mouse to a certain degree. i have been trying to come up with an example of how i need this to work. for instance, imagine playing a shooter type game where ...
by mikecaliber
Tue Nov 01, 2005 9:34 pm
Forum: Coding Questions
Topic: to sparkie or winapi gurus- mouse events and winapi-
Replies: 7
Views: 2956

thanks droopy, and i will look at that. but i still want more replies and ideas. bump for more views and responses-

btw, how do you USE your library? no apparent help file or anything-

best,
mike
by mikecaliber
Tue Nov 01, 2005 8:27 pm
Forum: Coding Questions
Topic: to sparkie or winapi gurus- mouse events and winapi-
Replies: 7
Views: 2956

to sparkie or winapi gurus- mouse events and winapi-

is there a winapi command that i can use to send to a window mouse commands?

let's say that there is a program called "test" that is running (not a program that i created).

what i want to do is when i press the left mouse button (no matter when or what window or program has the focus) then the ...
by mikecaliber
Mon Sep 12, 2005 7:33 pm
Forum: Windows
Topic: Why does this not work and make an error?
Replies: 5
Views: 2429

bump for more views
by mikecaliber
Mon Sep 12, 2005 7:24 pm
Forum: Windows
Topic: Why does this not work and make an error?
Replies: 5
Views: 2429

thanks freak!

i am an idiot for missing that-

in the following code,

DWORD FindModule (HANDLE hProcess, const char* sModule)
{
HMODULE hMod[1024];
DWORD cbNeeded;

If( EnumProcessModules( hProcess, hMod, SizeOf(hMod), &cbNeeded) )
{
For ( unsigned int i=0 ; i < (cbNeeded / sizeof(HMODULE ...
by mikecaliber
Mon Sep 12, 2005 5:30 pm
Forum: Windows
Topic: Can someone help me to convert the following c++ code?
Replies: 1
Views: 1605

Can someone help me to convert the following c++ code?

I need help converting the following code so that it works in pb..

I am not a complete newb with winapi, but i will say that i haven't got much experience trying to make api calls and converting things to pb. this would be a learning experience for me and also help with my api calls in the future ...
by mikecaliber
Mon Sep 12, 2005 5:21 pm
Forum: Windows
Topic: Why does this not work and make an error?
Replies: 5
Views: 2429

Why does this not work and make an error?

ws_psapi_lib = 1
ws_psapi_h.l = OpenLibrary(ws_psapi_lib,"PSAPI.DLL")
*ws_EnumProcessModules = IsFunction(ws_psapi_h,"EnumProcessModules")
CloseLibrary(ws_psapi_lib)



Enter that code into your pb and run it.... I get a Windows runtime error. I am trying to use that .dll call ...