reference:plugins:viewer_plugins:dvp_getfileinfofilestream

DVP_GetFileInfoFileStream(
     HWND:hWnd,
     LPTSTR:lpStream,
     LPTSTR:lpszName,
     LPVIEWERPLUGINFILEINFO:lpVPFileInfo,
     LPDVPFILEINFOHEADER:lpFIH,
     DWORD:dwStreamFlags
)
→ BOOL

Arguments

hWnd

This parameter specifies a parent window handle in case you need to display any dialogs.

lpStream

Specifies an IStream data object that you can read from.

lpszName

This parameter provides the name of the file, including the full path.

lpVPFileInfo

This parameter points to a VIEWERPLUGINFILEINFO structure that contains the information that you returned in the DVP_IdentifyFile function, including the dwPrivateData field. This allows you to preserve your own data between the calls to DVP_IdentifyFile and DVP_GetFileInfoFile.

lpFIH

Points to a DVPFILEINFOHEADER structure - see DVP_GetFileInfoFile.

dwStreamFlags

Specifies flags describing the stream - DVPSF_Slow will be set if the data stream is considered "slow", and DVPSF_NoRandomSeek is set if the stream does not support random seeking.

Return value

As for DVP_GetFileInfoFile.

Description

The DVP_GetFileInfoFileStream function is called to get information about a data stream.

The DVP_GetFileInfoFileStream function is very similar to the DVP_GetFileInfoFile function except that it has additional parameters specifying the data stream.

The lpStream parameter specifies an IStream data object that you can read from. The dwStreamFlags parameter specifies flags describing the stream - DVPSF_Slow will be set if the data stream is considered "slow", and DVPSF_NoRandomSeek is set if the stream does not support random seeking.