| |
 |
|
|
|
Launch Pivot API (LPAPI) version 1.6
Launch Pivot API (LPAPI) version 1.6
------------------------------------------------------------
Launch Pivot can be extended by programming external modules
(dynamic link libraries known by DLLs). The dll must export
two functions. One is for registering file types the dll can
handle. The other function returns description of the file
that is being indexed by Launch Pivot. When the dll is
copied to dll subdirectory and Launch Pivot is being
restarted then Launch Pivot will automatically use the dll.
------------------------------------------------------------
GetFileTypes
Returns all file extensions of the files that the dll is
able to read. File extension includes the period character
that separates the name and extension parts.
Parameters
BufferLen: OUT Unsigned Integer
Total length of the file extensions not including the
terminating null character
FileTypes: OUT String[255]
All known file extensions by the dll separated by a comma.
For example.
.mp2,.mp3,.id3,.tag
------------------------------------------------------------
GetFileDescription
Returns the description of the file that is being indexed.
Launch Pivot calls the the dll with all file types that it
returned with function GetFileTypes.
Parameters
Filename: IN String
Filename that is being indexed.
BufferLen: OUT Unsigned Integer
Length of the description.
Description: OUT String[255]
Returns the description that can be used in Launch Pivot
to search the files.
If the function succeeds, the return value is nonzero and the
variable represented by the BufferLen parameter contains the
number of characters copied to the destination buffer, not
including the terminating null character.
If the function fails, the return value is zero.
------------------------------------------------------------
LPAPI.H
/*
** Launch Pivot Version 1.6
** Copyright (C) Interfaco Software
** All rights reserved.
*/
#include
#define __export
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
VOID __export far pascal GetFileTypes(
unsigned int far *BufferLen,
unsigned char far *FileTypes);
BOOL __export far pascal GetFileDescription(
const unsigned char far *Filename,
unsigned int far *BufferLen,
unsigned char far *Description);
#ifdef __cplusplus
}
#endif
#endif
|
|
|
|
 |
|