VwStreamOpenFuncVwStreamOpenFunc*
*Contents  *Index  *Topic Contents
*Previous Topic: VwStreamCloseFunc
*Next Topic: VwStreamReadFunc

VwStreamOpenFunc

Checks the validity of the specified file and returns information about the file parser.

Syntax


INT VwStreamOpenFunc(
    SOFILE hFile,                     
    INT wFileId,                      
    U_BYTE VWPTR *pFileName,          
    SOFILTERINFO VWPTR *pFilterInfo,  
    HPROC reserved                    
);

Parameters

hFile
Handle to the file for execute input and output (XIO) routines.
wFileId
Identifier for the file.
pFileName
Address of the null-terminated string specifying the base name of the file. This string does not include path information.
pFilterInfo
Address of the SOFILTERINFO structure that receives information about the file parser.
reserved
Reserved; do not use.

Return Values


Returns the VWERR_OK value if successful, or one of the following error values otherwise:
VWERR_BADFILECorrupt or unreadable file
VWERR_EMPTYFILEEmpty file
VWERR_PROTECTEDFILEPassword-protected or encrypted file
VWERR_SUPFILEOPENFAILSSupplementary file failed to open


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.