We wrote an SMB server for Windows. I am able to map a local drive and use it to create/save/rename/delete Word files. What is not working is the function SaveAs from Word.
When I do a SaveAs I recieve a TRANS2_QUERY_PATH_INFORMATION (Information level 0x101)for the new file to be created. Since the file does not exist I return a ErrBadFile error. In response to my error code Word shows 'File new.doc is not accessible' error at the prompt. I tried to change the error code to return ERRnofiles, NT_STATUS_NO_OBJECT_FOUND. I am getting the same response from Word. Is there a particular Error code that Word expects to see in response to TRANS2_QUERY_PATH_INFORMATION? Is it depended on the Lana dialect one negotiates on startup?
Using FileMon (packet sniffer) I see the error code is not being interpreted correctly. ReturnCode column shows 0xC00000003 instead of interpreting the error code as 'File Not Found' (which is what it interprets the error code as using net use SMB).
Any help/pointers is much appreciated.
Thanks
When I do a SaveAs I recieve a TRANS2_QUERY_PATH_INFORMATION (Information level 0x101)for the new file to be created. Since the file does not exist I return a ErrBadFile error. In response to my error code Word shows 'File new.doc is not accessible' error at the prompt. I tried to change the error code to return ERRnofiles, NT_STATUS_NO_OBJECT_FOUND. I am getting the same response from Word. Is there a particular Error code that Word expects to see in response to TRANS2_QUERY_PATH_INFORMATION? Is it depended on the Lana dialect one negotiates on startup?
Using FileMon (packet sniffer) I see the error code is not being interpreted correctly. ReturnCode column shows 0xC00000003 instead of interpreting the error code as 'File Not Found' (which is what it interprets the error code as using net use SMB).
Any help/pointers is much appreciated.
Thanks