Hi, I'm trying to compile a project of mine into x64. I'm on Windows 7 64, but apparently I needed to install the Windows SDK to be able to compile for x64 - I made sure x64 support was enabled...
Type: Posts; User: n1mda
Hi, I'm trying to compile a project of mine into x64. I'm on Windows 7 64, but apparently I needed to install the Windows SDK to be able to compile for x64 - I made sure x64 support was enabled...
Moderator note: This thread was moved as it was an inapproprioate reply that resurrected Finding a 'straight' in poker.
I'm reviving this thread as I'm in the process of trying to find straights...
I would want it to be ASCII text only, not with the CLRF terminators. I'm not sure about the difference, since the file that works contains newlines as well.
I've managed to change it by running...
I'm trying to do some regex matching from a file, however, it works sometimes but sometimes not. I have a reason to believe that it has to do with the locale.
$ file test.txt
test.txt: ASCII...
Hi!
As a small hobby project of mine, i would like to create a small library for image recognition (not photos, but graphics).
However, I'm not certain on how to do this. I suppose I should...
Thank you. I've looked through a few examples and my eye has fallen on to IAT Patching, a quite interesting technique.
I've been writing some code but I have not gotten it to actually work. This...
Hi. What I'm trying to achieve here is an API hook in a single application. The application is writing several logfiles which is clogging up my harddrive, so I thought I'd reroute WriteFile to a...
Thank you for the tip!
I've started out and it's actually coming along pretty well, I have so far been able to read the header of the dump file and can parse that pretty easy.
I'll post some code...
Oh don't get me wrong, I don't want someone to write it for me. Definitly not, I'm probably capable of doing it myself. Just wanted to see if someone already wrote a small wrapper that handles...
I still need help with this, does anyone have any information?
I've gone over the parts of the sourcecode from libpcap that I want, but it is still really huge with a lot of structs and other things I don't really need. I simply want to open a pcap dump and...
It's supposed to be a packet analyzer on the go, and it is also possible (for jailbroken devices) to sniff and collect packets.
The thing is that since this app should enter the appstore, I can...
Hello fellows.
I'm writing an application for iPhone (using objective-c) but as I want it to parse a pcap file (packet dump) I thought of writing that part in strict C.
The thing is, I'm not...
Btw. This is how I solved it:
resources.rc -
1 BIN DISCARDABLE "path-to-.dll"
extract.c -
I didn't mention error handling etc - but it will offcorse be included.
I have made my choice of handling this problem, and I want to extract them from resources in my executable. With hours of...
Hi, I had no idea if I should post it in Windows Programming or General C-programming, but since win32 is the platform I'm working on I'm posting here...
Mod may move if it's in the wrong section.
...
So after FreeLibrary I added a second WaitForSingleObject() - it returns WAIT_OBJECT_0
but next comes VirtualFreeEx() wich fails:
if(!VirtualFreeEx(hOpenProcess, lpRemoteMemory, 0,...
This thread is getting way out of hand with long code-snippets...
So here is a pastebin:
http://pastebin.ca/902337
I've been messing around a bit with using GetExitCodeThread() and the second...
I changed my code yes, and it is in that order I wrote...
Allright, sorry for inconvenience...
So heres exactly what my code does:
OpenProcess(PROCESS_ALL_ACCESS, FALSE, IDProcess);
where IDProcess is my own variable. It has the return vale of...
Ahh you genius! Thanks a lot! I seem to nearly have gotten all the code together, I get no error running the code - but the host process seem to crash anyway...
// No luxury poop, have to...
Excuse me for my minor knowledge in C, but to read the return value from WaitForSingleObject I would do like this:
int soReturn;
soReturn = WaitForSingleObject(hRemoteThread, INFINITE);...
Thank you for your answers!
I've been playing around with this for a while now, but I can not seem to solve it...
My steps through the code goes like this:
1. OpenProcess() - no errors
2....
Thank you for your answer!
But is this caused by the DLL or the injection-code itself?
I though since I have WaitForSingleObject() this would not be an error?
Hi people!
First of all, I'd like to say thank you for a wonderful site and forum! It has helped me a lot in my progress in C. Big kudos to you all!
Now on to my question, I'm currently writing...