Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Please Vote! Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

# SAppFinder

  Routines for finding applications.

[ Windows | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

## Quick Index

  DESCRIPTION

## Class Summary

class SAppFinder
{
public:

  static ErrCode iNativeFindVerbs( const CStr *fullPath, 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( const CStr *fullPath, const CStr *fileName, CStringVector *vatVec, long maxToReturn, long *numReturned );

Searches the Registry for entries which mention of an application, 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 fullPath
  The full path of the application.
in fileName
  The name of the application.
out vatVec
  On exit, contains the returned strings.
in maxToReturn
  The full path of the application.
out numReturned
  On exit, contains the number of entries

    	static	ErrCode iNativeFindVerbs( const CStr *fullPath, 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( const CStr *fullPath, 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 Mon May 28 10:10:58 2001 .

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.