Software components for data protection, secure storage and transfer
DWORD access= GENERIC_READ | GENERIC_WRITE;
DWORD share= FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE;
DWORD disposition= CREATE_ALWAYS;
HANDLE h= CreateFile(L"c:\\temp\\foo.text", access, share, 0, disposition, 0, 0);
printf("delete worked: %d\n", DeleteFile(L"c:\\temp\\foo.text"));
HANDLE h2= CreateFile(L"c:\\temp\\foo.text", GENERIC_READ, share, 0, OPEN_EXISTING, 0, 0);
printf("creating: %p, error= %d\n", h2, GetLastError());
DWORD written= 0;
WriteFile(h, "fooblaro", 5, &written, NULL);
printf("write worked: %d\n", written);
Number of guests: 1, registered members: 0,
in total hidden: 0
Copyright (c) 2017, /n software, inc.
As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.