Codex API: Shell

GetGenericViewerEx

The GetGenericViewerEx function obtains information on the default file viewer application to be used for viewing/editing files inside archives during a file view/update operation.

 

INT GetGenericViewerEx(
    LPTSTR lpViewer      // generic viewer
);

Parameters

lpViewer

[out] Pointer to a buffer that receives the full path to the current default file viewer, such as "c:\windows\notepad.exe" (without the quotes).

If no default viewer exists, the function returns NULL.

Pass NULL in this parameter to request the required size for the buffer.

Return Values

The return value specifies the required size of the buffer, excluding the number of bytes necessary for a terminating null character.

Remarks

The default file viewer is only used when a file inside an archive cannot be opened by any one of the registered applications on the system, meaning that it is an unrecognized file type.

Requirements

Windows NT/2000/XP: Requires Windows NT 4.0 SP4 or later.
Windows 95/98/Me:
Requires Windows 98 (or Windows 95 with DCOM 1.2).
Header:
Declared in mCodexAPI.h.
Library:
Use mCodexAPI.dll.

See Also

Codex API Overview, Codex API Functions, SetGenericViewer