今天在C#中调用prodave中的db_write_ex6(BlkNr, DType, StartNr, ref pAmount, BufLen, pWriteBuffer)时,
出错,调用语句RetValue = Prodave6.db_write_ex6(BlkNr, DType, StartNr, ref pAmount, BufLen, pWriteBuffer);
retvalue = 0xD241,然后通过GetErrorMessage_ex6(RetValue, pErrLen, pErrorBuffer);得到错误信息为
D241 The function is not permitted in the current protection level.
谷歌了一下在 这里 中找到了答案,
Hi all,
this is often caused by Norton (especially, but also other antivirus)!
Try to remove Norton (use the special Norton removal tool).
关掉瑞兴杀毒之后就OK了!