Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMB, Using SaveAs on word files

Status
Not open for further replies.

sailajaj

Programmer
Jan 14, 2005
2
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top