-
Routines for finding applications.
[
Windows |
Source |
Keywords |
Summary | Ancestors | All Members | Descendants ]
- DESCRIPTION
Class Summary
class SAppFinder
{
public:
- static ErrCode iNativeFindVerbs( CStringVector *fullPaths, const CStr *fileName, CStringVector *vatVec, long maxToReturn, long *numReturned );
- static ErrCode iNativeFindAppsByName( const CStr *appName, const CStr *defaultDir, long maxToReturn, long flags, CStringVector *pRetTable );
- static ErrCode iNativeFindAppsByExtension( const CStr *fileExt, const CStr *tempDir, long maxToReturn, long flags, CStringVector *pRetTable );
protected:
}; // SAppFinder
Back to the top of SAppFinder
DESCRIPTION
Routines for finding applications.
Back to the top of SAppFinder
ErrCode iNativeFindVerbs( CStringVector *fullPaths, const CStr *fileName, CStringVector *vatVec, long maxToReturn, long *numReturned );
Searches the Registry for entries which mention one or more applications, and returns the registry entries in
'VAT' format.
A 'VAT' consists of a set of four strings: an extension, a Registry key, a verb, and a command line.
Ex. { ".txt", "txtfile\\shell\\open\\command", "open", "c:\windows\notepad %1" }
- in fullPaths
- The full paths of the applications.
- in fileName
- The name of the application. Not used.
- out vatVec
- On exit, contains the returned VATs.
Each application which is searched for takes up 4 * maxToReturn
entries in the vector. Thus, this vector might be sparse.
This vector will have 4 * fullPaths.length() * maxToReturn entries.
- in maxToReturn
- For each member of fullPaths, the maximum number of VATs to return.
- out numReturned
- On exit, contains the number of entries for each application,
in the same order as the applications are listed in fullPaths.
static ErrCode iNativeFindVerbs( CStringVector *fullPaths, const CStr *fileName, CStringVector *vatVec,
long maxToReturn, long *numReturned );
Back to the top of SAppFinder
ErrCode iNativeFindAppsByName( const CStr *appName, const CStr *defaultDir, long maxToReturn, long flags, CStringVector *pRetTable );
Finds apps by name.
- in appName
- The application name.
- in defaultDir
- the default directory
- in maxToReturn
- The maximum number of apps to return
- in flags
- The lower 2 bits indicate the search level,
with 0 being the fastest and 3 being the most extensive
- out pRetTable
- On exit, contains the found applications.
static ErrCode iNativeFindAppsByName( const CStr *appName, const CStr *defaultDir, long maxToReturn,
long flags, CStringVector *pRetTable );
Back to the top of SAppFinder
ErrCode iNativeFindAppsByExtension( const CStr *fileExt, const CStr *tempDir, long maxToReturn, long flags, CStringVector *pRetTable );
Finds apps by extension.
- in fileExt
- The extension.
- in tempDir
- The path to a writable temporary directory.
- in maxToReturn
- The maximum number of apps to return
- in flags
- Various flags
- out pRetTable
- On exit, contains the found applications.
static ErrCode iNativeFindAppsByExtension( const CStr *fileExt, const CStr *tempDir, long maxToReturn,
long flags, CStringVector *pRetTable );
Back to the top of SAppFinder
All Members
- public:
- static ErrCode iNativeFindVerbs( CStringVector *fullPaths, const CStr *fileName, CStringVector *vatVec, long maxToReturn, long *numReturned );
- static ErrCode iNativeFindAppsByName( const CStr *appName, const CStr *defaultDir, long maxToReturn, long flags, CStringVector *pRetTable );
- static ErrCode iNativeFindAppsByExtension( const CStr *fileExt, const CStr *tempDir, long maxToReturn, long flags, CStringVector *pRetTable );
- protected:
Back to the top of SAppFinder
Ancestors
Class does not inherit from any other class.
Back to the top of SAppFinder
Descendants
Class is not inherited by any others.
Back to the top of SAppFinder
Generated from source by the Cocoon utilities on Fri Aug 23 12:34:06 2002
.
Report problems to jkotula@stratasys.com