Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _UNICODE 1
- #include <windows.h>
- #include <stdio.h>
- int main(void) {
- HANDLE h;
- h = CreateFile(
- TEXT("\\\\?\\C:\\Users\\Cataphract\\con.php"),
- GENERIC_WRITE,
- 0,
- NULL,
- CREATE_ALWAYS,
- FILE_ATTRIBUTE_NORMAL,
- NULL
- );
- if (h == INVALID_HANDLE_VALUE)
- printf("failed\n");
- else
- printf("succeeded\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement