Search found 63 matches

by PeterBotes
Sat Feb 02, 2013 10:12 am
Forum: Coding Questions
Topic: Why does this code freeze
Replies: 4
Views: 900

Re: Why does this code freeze

Thanks luis, OK now I want to read the URL passed to the program so I can type this in my browser "http://MyIPAddress/SomeData" then in my code
do something like

if URLParam1$="SomeData"
. ................
endif


Sorry if this is simple but I have been looking for hours and can't figure how ...
by PeterBotes
Fri Feb 01, 2013 10:42 pm
Forum: Coding Questions
Topic: Why does this code freeze
Replies: 4
Views: 900

Why does this code freeze

Anyone any ideas why this does not show the page until I stop the program?

What I was playing with is accepting data from a browser and dishing up dynamic pages, if I leave out this line "ReceiveNetworkData(ClientID, *Buffer, 4000)", I can see the text but it loops forever!


If InitNetwork() = 0 ...
by PeterBotes
Sat Oct 20, 2012 5:40 pm
Forum: Coding Questions
Topic: Self deleting prog
Replies: 1
Views: 946

Self deleting prog

Hi,

Does anyone know if this example of self deletion has been converted to purebasic?

http://blogorama.nerdworks.in/comment.aspx?entryID=21

it allegedly deletes a program whilst it is running.

Pete.

P.S. OS=Windows xp and I have read posts about trying on this forum about how to do this ...
by PeterBotes
Sun Apr 15, 2012 9:00 pm
Forum: Coding Questions
Topic: hook dll calls
Replies: 3
Views: 1055

Re: hook dll calls

Thanks Thorium but I wanted to log what the app is running over a day or so so debugging is out of the question, also other hardware is involved that will fail is the debugger breaks out, it needs to be a "in memory logging" type app.

Anyone?

Pete.
by PeterBotes
Fri Apr 13, 2012 2:23 pm
Forum: Coding Questions
Topic: hook dll calls
Replies: 3
Views: 1055

hook dll calls

Hi,

I have a undocumented DLL I want to learn what the function do, I have a list of exported function names but I want to understand what is passed to these functions in more detail.

So my questions is, what is the best way to hook these functions as they are called from another program?

My ...
by PeterBotes
Fri Mar 30, 2012 9:30 am
Forum: Coding Questions
Topic: OpenProcess & Closehandle
Replies: 2
Views: 1189

OpenProcess & Closehandle

Hi all,

I am getting a handle to a process via OpenProcess_ but what happens if the process exists, how can I close the handle? and what happens if I don't close it? do I eventually run out of handles!

Reason I ask is I appear to have a handle leak and this is the only thing I can see that might ...
by PeterBotes
Fri Feb 24, 2012 10:56 am
Forum: Coding Questions
Topic: DLL's in another process
Replies: 5
Views: 1165

Re: DLL's in another process

Hi SFSxOI,

Update:

I have managed to use your code and change it slightly to list all DLL's and base addresses associated with a process and it works great thanks.

Pete.
by PeterBotes
Fri Feb 24, 2012 10:32 am
Forum: Coding Questions
Topic: DLL's in another process
Replies: 5
Views: 1165

Re: DLL's in another process

Hi SFSxOI,

Well I want the base address, but first of all I thought making sure I could list the DLL would be a good idea, once I can list it I could then move on to getting its base address.

So,

1) I would like to list all DLL's associated with a process, I have code that returns the handle of ...
by PeterBotes
Fri Feb 24, 2012 2:39 am
Forum: Coding Questions
Topic: DLL's in another process
Replies: 5
Views: 1165

Re: DLL's in another process

Hi xorc1zt

I did actuall y find this


me32.MODULEENTRY32
me32\dwSize = SizeOf(MODULEENTRY32)

hSnapShot = CreateToolhelp32Snapshot_(#TH32CS_SNAPMODULE, hProcess) ;Change the zero for any processID.
If hSnapShot
If Module32First_(hSnapShot, me32)
Debug "Module name = "+PeekS(@me32 ...
by PeterBotes
Thu Feb 23, 2012 10:55 pm
Forum: Coding Questions
Topic: DLL's in another process
Replies: 5
Views: 1165

DLL's in another process

Hi again everyone :)

How can I find the DLL's (ALL Dll's not just windows) that a process has loaded and then get the memory address for it, anyone got any ideas / code?

Thanks

Pete.
by PeterBotes
Thu Feb 23, 2012 10:53 pm
Forum: Coding Questions
Topic: VirtualAllocEx_ questions
Replies: 2
Views: 689

Re: VirtualAllocEx_ questions

Thanks Thorium
by PeterBotes
Mon Feb 20, 2012 1:55 pm
Forum: Coding Questions
Topic: VirtualAllocEx_ questions
Replies: 2
Views: 689

VirtualAllocEx_ questions

Hi All,

I have a problem with memory and I am trying to track it down, I suspect VirtualAllocEx_ but wanted to get a little feedback from you guys.

I have seen VirtualAllocEx_ used in many places in this forum and others but two things perplex me

1) Why do 99% of the examples not RESERVE the ...
by PeterBotes
Thu Feb 02, 2012 7:20 pm
Forum: Coding Questions
Topic: Remote debugging (is this of topic?)
Replies: 4
Views: 848

Re: Remote debugging (is this of topic?)

xorc1zt, when you used the remote debugger, did it behave like any other debugger, you know at any point press a break key and it dropped into assembly listing, press another and it continued?

looking at remote debugging I might try firewire or something faster as long as it remains simple.

Thanks ...
by PeterBotes
Thu Feb 02, 2012 2:41 pm
Forum: Coding Questions
Topic: Remote debugging (is this of topic?)
Replies: 4
Views: 848

Remote debugging (is this of topic?)

I have been looking at remote debugging as this appears to be a great way to test a live machine, my question is can I just enable remote debugging / connect a cable and then press a "BREAK" button and it drops to an "assembly view" at the current location, regardless of the process it is in (in ...
by PeterBotes
Thu Feb 02, 2012 2:34 pm
Forum: Coding Questions
Topic: Inject code
Replies: 3
Views: 1043

Re: Inject code

Thanks yet again xorc1zt for the help :D

Pete