DVP_GetFileInfoFile(
     HWND:hWnd,
     LPTSTR:lpszName,
     LPVIEWERPLUGINFILEINFO:lpVPFileInfo,
     LPDVPFILEINFOHEADER:lpFIH,
     HANDLE:hAbortEvent
)
→ BOOL

Arguments

hWnd

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

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

This points to a DVPFILEINFOHEADER structure, which is a header to a larger structure (described below).

hAbortEvent

Specifies an event handle that you can use to determine if the user wishes to abort the file info extraction.

Return value

You should return TRUE if file information was successfully retrieved, or FALSE on failure.

Description

The DVP_GetFileInfoFile function is called to get information about a file.

DVPMajorType_SoundDVPFILEINFOMUSIC
DVPMajorType_MovieDVPFILEINFOMOVIE

As described above, the uiMajorType field in the DVPFILEINFOHEADER structure determines the real type of the information structure passed.

If the uiMajorType value is DVPMajorType_Sound, the structure is a DVPFILEINFOMUSIC structure, which has the following fields:

If the uiMajorType value is DVPMajorType_Movie, the structure is a DVPFILEINFOMOVIE structure, which has the following fields: