szFileName contains calc.exe
hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
dwFileSize = GetFileSize(hFile, NULL);
error code which i am getting is 183....which says "Cannot create a file when that file already exists"GetFIleSize function is failing....
can i use CreateFile with first argument as cal.exe....??