这是什么程序?
#include<windows.h>
#include<stdio.h>
void main()
{
HANDLE FileHandle;
DWORD BytesWritten;
if((FileHandle=CreateFile("\\\\Myserver\\Myshare\\Sample.txt",
GENRIC_WRITE | GENERIC_READ.
FILE_SHARE_READ | FILE_SHARE_WRITE,NULL.
CREATE_ALWAYS.FILE_ALLRIBUTE_NORMAL,NULL))
==INVALID_HANDLE_VALUE);
{printf("CreateFile failed with error %d\n",GetlastError());
return;
}
if(WrittnFile(FileHandle,"This is a test",14.
&&BytesWritten,NULL)==0)
{printf("WriteFile failed with error %d\n",GetlastError());
return;
}
if(CloseHandle(FileHandle)==0)
{printf("CloseHandle failed with error %d\n",GetlastError());
return;
}
}
谁看的懂~跟我讲讲,谢谢!~并且还有三个错误。我不知道怎么改?