Search:

Type: Posts; User: david84

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,461

    When I'm not a big fan of Windows so I guess I...

    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.
  2. Replies
    5
    Views
    1,461

    I have downloaded the SDK, but can't find...

    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...
  3. Replies
    5
    Views
    1,461

    Receiving and Responding to Windows Messages

    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...
  4. Replies
    1
    Views
    1,146

    Registry Checker

    This boolean always returns false :S
    Anyone have any suggestions as to why?


    bool keyExists()
    {
    HKEY hKey;
    DWORD lRv =...
  5. Replies
    4
    Views
    1,496

    oh my.. sorry for this thread, i really should've...

    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...
  6. Replies
    4
    Views
    1,496

    Extra Characters

    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......
  7. Replies
    10
    Views
    6,673

    Thanks for all your help... I did return...

    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...
  8. Replies
    10
    Views
    6,673

    Yes, you are correct. I must've got mixed up...

    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...
  9. Replies
    10
    Views
    6,673

    Sorry, I should've mentioned that I'd already...

    Sorry, I should've mentioned that I'd already done that.
  10. Replies
    10
    Views
    6,673

    It's from netdb.h which doesn't work on Windows....

    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...
  11. Replies
    10
    Views
    6,673

    Resolving hostname into IP

    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;
  12. Thread: Execute PHP

    by david84
    Replies
    3
    Views
    1,266

    I won't be doing that (although I wouldn't...

    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...
  13. Thread: Execute PHP

    by david84
    Replies
    3
    Views
    1,266

    Execute PHP

    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...
  14. Thread: Process List

    by david84
    Replies
    4
    Views
    3,201

    Thanks for the response; and I apologize for my...

    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....
  15. Thread: Process List

    by david84
    Replies
    4
    Views
    3,201

    I'm using the following code to do as I wanted...

    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,...
  16. Thread: Process List

    by david84
    Replies
    4
    Views
    3,201

    Process List

    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...
  17. Replies
    1
    Views
    1,022

    Accessing a char array everywhere

    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...
Results 1 to 17 of 17