ZwCreateFile failing

Hi All,
I opened the file in Non Sharing mode, wrote the data in file and closed the file. After that when I wanted to open the file in Sharing mode (FILE_SHARE_READ | FILE_SHARE_WRITE |FILE_SHARE_DELETE) it is getting failed with STATUS_SHARING_VIOLATION.

I tried following things to check if it works

1 I opened the file in Sharing mode (FILE_SHARE_READ | FILE_SHARE_WRITE |FILE_SHARE_DELETE) instead of NonSharing. But, it still returned STATUS_SHARING_VIOLATION

2 After getting STATUS_SHARING_VIOLATION as status, I retried opening the file putting delay of 10 sec. File got opened successfully

Please, correct me if I am missing something

Regards
Pankaj

Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html