阅读:1232回复:3
如何学驱动
WORD pAction;
BYTE pError; ::logfile=R0_OpenCreateFile(true,\"log.txt\",OPEN_ACCESS_WRITEONLY,ATTR_NORMAL,ACTION_IFNOTEXISTS_CREATE|ACTION_IFEXISTS_TRUNCATE,R0_NO_CACHE,&pAction,&pError); 为什么在98DDK+VTD95中通不过 |
|
沙发#
发布于:2002-05-16 21:17
WORD pAction; HANDLE hFile; WORD Error; BYTE actionTaken; hFile=R0_OpenCreateFile(FALSE,\"D:\\\\LogFile.TXT\", OPEN_ACCESS_READWRITE|OPEN_SHARE_DENYWRITE|OPEN_FLAGS_COMMIT,ATTR_NORMAL,ACTION_IFEXISTS_OPEN|ACTION_IFNOTEXISTS_CREATE, R0_SWAPPER_CALL,&Error,&actionTaken); 看看这样行不行。 |
|
板凳#
发布于:2002-05-17 19:02
改为:
WORD pAction; BYTE pError; ::logfile=R0_OpenCreateFile(true,\"log.txt\",1,1,0,&pAction,&pError); |
|
地板#
发布于:2002-05-17 19:07
谢谢了,给分
|
|