Getting file path of attachments in Documents using C API for DSAPI filter

I have a situation where in I have to open an access database file which is stored as attachment in the domino server in the following format.dbname.nsf/document/view/$file/dbfilename.

For opening the file I need the file path.

Can anyone help me with sample code to do this.

I have made a Win32 project in VS.Net2003 IDE for making the DSAPI filter.