lNumber 	protocol;

  /* Cache the document file's path. */
  pself-&gt;MVDI_docStash.DI_docDir = doc-&gt;DI_docDir;
  strncpy( pself-&gt;MVDI_docStash.DI_docName, doc-&gt;DI_docName, FILE_LONGNAME_BUFFER_SIZE );

  /* Open the document file. */
  FilePushDir();  /* Save the old directory */
  FoamSetDocumentDir( doc-&gt;DI_docDir );
  pself-&gt;MVDI_fileStash = VMOpen( doc-&gt;DI_docName,
                                  VMAF_FORCE_READ_WRITE | VMAF_FORCE_DENY_WRITE, 
                                  VMO