how to create a file using windows API?-Collection of common programming errors

LPCTSTR is the same as const TCHAR* (“Long Pointer to a Constant TCHAR-String”), which is either const wchar_t* or const char* depending on the character set. So just pass in a string surrounded by _T(), like:

CreateFile(_T("C:\\File.txt"), FILE_READ_DATA, FILE_SHARE_READ,
    NULL, OPEN_ALWAYS, 0, NULL);

(By the way, FILE is not part of the Windows SDK; it’s part of the standard C runtime library, and it’s internally based on CreateFile, which creates a file based on its name.)