Snippets tagged pinvoke

  • Exiting cleanly

    Demonstrates how to run a function when the user presses Ctrl+C, closes the console window, or logs off.

    31 people like this

    Posted: 13 years ago by Tim Robinson

  • local wireless passwords

    dump out saved windows wireless passwords in plaintext. they're stored in xml file, to successfully dump them you must be logged in as the same user who created them (at least in the below code ;)

    3 people like this

    Posted: 11 years ago by David Klein

  • Async SNTP client

    An asynchronous SNTP client that can retrieve the current time from an internet time server (such as and optionally update the local system clock to match. Demonstrates async UDP communication, bit-shifting, and native interop/PInvoke.

    13 people like this

    Posted: 13 years ago by Joel Mueller