I have this:
Code:
hExtra=CreateFile("Path.txt", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
ReadFile(hExtra, Buffer, 100, &dwBytes2, NULL);
DeleteFile(Buffer);
But it did not work, then I tried this:
Code:
TCHAR Buffer[100];
hExtra=CreateFile("Path.txt", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
ReadFile(hExtra, Buffer, 100, &dwBytes2, NULL);
DeleteFile(Buffer);
But that didn't help either.
Ken Fitlike helped me on a question very simalar to this before and it used the lstrcmpi function. So I assume this problem would use it too. But I don't know how I should use it. Any help? Thanks in advance.