Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <windows.h>
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char* argv[])
  5. {
  6. HANDLE h1, h2;
  7. const char *somefile = "somefile";
  8.  
  9. h1 = CreateFileA(somefile, 0xc0000000,00000000,00000000,0x00000003,0x20000000,00000000);
  10. h2 = CreateFileA(somefile, 0x00000080,0x00000003,00000000,0x00000003,00000000,00000000);
  11. printf("h1: %x, h2: %x, error: %x\n", h1, h2, GetLastError());
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement