Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- int main(int argc, char* argv[])
- {
- HANDLE h1, h2;
- const char *somefile = "somefile";
- h1 = CreateFileA(somefile, 0xc0000000,00000000,00000000,0x00000003,0x20000000,00000000);
- h2 = CreateFileA(somefile, 0x00000080,0x00000003,00000000,0x00000003,00000000,00000000);
- printf("h1: %x, h2: %x, error: %x\n", h1, h2, GetLastError());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement