Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 1st, 2010  |  syntax: C  |  size: 0.35 KB  |  views: 104  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #define _UNICODE 1
  2. #include <windows.h>
  3. #include <stdio.h>
  4.  
  5. int main(void) {
  6.         HANDLE h;
  7.         h = CreateFile(
  8.                 TEXT("\\\\?\\C:\\Users\\Cataphract\\con.php"),
  9.                 GENERIC_WRITE,
  10.                 0,
  11.                 NULL,
  12.                 CREATE_ALWAYS,
  13.                 FILE_ATTRIBUTE_NORMAL,
  14.                 NULL
  15.                 );
  16.         if (h == INVALID_HANDLE_VALUE)
  17.                 printf("failed\n");
  18.         else
  19.                 printf("succeeded\n");
  20.  
  21.         return 0;
  22. }