When I'm not a big fan of Windows so I guess I would go with B. Although, I'm not entirely sure there's another way to delay the shutdown whilst my program finishes.
Type: Posts; User: david84
When I'm not a big fan of Windows so I guess I would go with B. Although, I'm not entirely sure there's another way to delay the shutdown whilst my program finishes.
I have downloaded the SDK, but can't find anything but example sources of seemingly irrelavant things.
The 2nd link was useful but I didn't see anything on WM_QUERYENDSESSION and how to respond to...
I've searched around but I'm still not entirely sure how it works. I understand the concept that, for example, Windows sends out the WM_QUERYENDSESSION message to all windows and that they then...
This boolean always returns false :S
Anyone have any suggestions as to why?
bool keyExists()
{
HKEY hKey;
DWORD lRv =...
oh my.. sorry for this thread, i really should've seen that. thanks for the explanation though.
okay.. i used scanf instead. can i ask why not though? and whether scanf is the most appropriate...
I'm using the code below to send messages between the through the two programs.
It works, but I'm getting a lot of excess characters and I have no idea where they came from......
Thanks for all your help... I did return WSAGetLastError(); which gave me an error code which indicated I failed to call WSAStartup.. I had that in a previous version but I kept messing around with...
Yes, you are correct. I must've got mixed up trying different ones.
However, I'm still having some issues:
It hits the code CommonTater suggested and exists. Is it just my system?
#pragma...
Sorry, I should've mentioned that I'd already done that.
It's from netdb.h which doesn't work on Windows. Instead of herror I tried perror but this brought about the following linker errors:
1>main.obj : error LNK2019: unresolved external symbol...
Found an example by Beej but I can't seem to get it working:
#include <stdio.h>
#include <winsock.h>
int main(int argc, char *argv[])
{
int i;
struct hostent *he;
I won't be doing that (although I wouldn't consider that click-fraud at all). Like the title says, I'm looking to execute the PHP on a page (website needs to visited to do that) but I wanted to...
What would be the best way to visit a list of URLs? It doesn't need to do anything but go to the site and increase a hitcounter. Would this be done with http requests or what? I've found a few things...
Thanks for the response; and I apologize for my lack of reseach. Below is what I have currently.
I've also tried setting the value of dwFilterFlag to 0x02, LIST_MODULES_64BIT & LIST_MODULES_ALL....
I'm using the following code to do as I wanted but it only shows the names of 32 bit processes. The 64 bit ones return as <unknown>. Oh and the PIDs are printed fine.
#pragma comment(lib,...
To start with, I'm basically looking to printf the current processes (windows) to the console.
Preferably something like this:
for (int i = 0; i < numOfProcs; i++)
printf("%s", process)
I...
Not the most appropriate title as I wasn't really sure how to describe my situation in so few words. So here is a proper explanation:
I found an IRC bot source where the bot would just join the...