Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] 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 · OSX ] Distribution Issues

# SAppInfo

  Routines for working with applications.

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

## Quick Index

  DESCRIPTION

## Class Summary

class SAppInfo
{
public:

  typedef enum tageMoveApp eMoveApp;
  static ErrCode iNativeLaunchApp( const CStr *commandLine, AppDataType *appDataP );
  static ErrCode iNativeQuitApp( AppDataType *appData );
  static ErrCode iNativeMoveApp( AppDataType *appData, eMoveApp selector, long flags );
  static ErrCode iNativeVerifyNativeAppData( AppDataType *appData );
  static BOOL getThreadIDAndHWNDFromProcessID( DWORD dwProcessId, DWORD *lpdwThreadId, HWND *lphwndMainWindow );

protected:

}; // SAppInfo

Back to the top of SAppInfo

### DESCRIPTION

Routines for working with applications.

Back to the top of SAppInfo

### typedef enum tageMoveApp eMoveApp;

Selector value used with iNativeMoveApp()

    	typedef enum tageMoveApp {
    		kMoveAppToFront = 1,
    		kMoveAppToBack = 2,
    		kMoveAppMinimize = 3,
    		kMoveAppMaximize = 4
    	} eMoveApp;

Back to the top of SAppInfo

### ErrCode iNativeLaunchApp( const CStr *commandLine, AppDataType *appDataP );

Launches an app with zero or more documents.

in commandLine
  The command line, including any arguments.
out appDataP
  On exit, contains information from CreateProcess no arguments.

    	static	ErrCode iNativeLaunchApp( const CStr *commandLine, AppDataType *appDataP );

Back to the top of SAppInfo

### ErrCode iNativeQuitApp( AppDataType *appData );

Quits an application

in appData
  Information on the app.

    	static	ErrCode iNativeQuitApp( AppDataType *appData );

Back to the top of SAppInfo

### ErrCode iNativeMoveApp( AppDataType *appData, eMoveApp selector, long flags );

Moves an application

in appData
  Information on the app.
in selector
  One of the eMoveApp constants
in flags
  Various flags

    	static	ErrCode iNativeMoveApp( AppDataType *appData, eMoveApp selector, long flags );

Back to the top of SAppInfo

### ErrCode iNativeVerifyNativeAppData( AppDataType *appData );

Verifies that an application is still running

in appData
  Information on the app.

    	static	ErrCode iNativeVerifyNativeAppData( AppDataType *appData );

Back to the top of SAppInfo

### BOOL getThreadIDAndHWNDFromProcessID( DWORD dwProcessId, DWORD *lpdwThreadId, HWND *lphwndMainWindow );

Uses a processID to get the primary HWND and primary thread of the process. May not be 100% reliable; the process might not have a window, the thread might not be the main thread, etc. etc.

in dwProcessId
  The processID.
out lpdwThreadId
  The primary threadID, or -1 if an error occurs.
out lphwndMainWindow
  The primary HWND, or -1 if an error occurs.

    	static	BOOL getThreadIDAndHWNDFromProcessID( DWORD dwProcessId, DWORD *lpdwThreadId, HWND *lphwndMainWindow );

Back to the top of SAppInfo

## All Members

public:
  typedef enum tageMoveApp eMoveApp;
  static ErrCode iNativeLaunchApp( const CStr *commandLine, AppDataType *appDataP );
  static ErrCode iNativeQuitApp( AppDataType *appData );
  static ErrCode iNativeMoveApp( AppDataType *appData, eMoveApp selector, long flags );
  static ErrCode iNativeVerifyNativeAppData( AppDataType *appData );
  static BOOL getThreadIDAndHWNDFromProcessID( DWORD dwProcessId, DWORD *lpdwThreadId, HWND *lphwndMainWindow );
protected:

Back to the top of SAppInfo

## Ancestors

Class does not inherit from any other class.

Back to the top of SAppInfo

## Descendants

Class is not inherited by any others.

Back to the top of SAppInfo

Generated from source by the Cocoon utilities on Fri Aug 23 12:34:07 2002 .

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

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