IStillImage::RegisterLaunchApplication

[This is preliminary documentation and subject to change.]

The IStillImage::RegisterLaunchApplication method puts an application in the Control Center's list of currently running applications that are push model aware.

HRESULT RegisterLaunchApplication(
  LPWSTR pwszAppName,  
  LPWSTR pwszCommandLine  
);
 

Parameters

pwszAppName
Pointer to a null-terminated string containing the name of the application. This name will be used in the control panel property sheet where you associate applications with device events.
pwszCommandLine
Pointer to a null-terminated string containing the full path to the executable file for this application. Additional command line arguments can be appended to this command.

Return Values

If the function succeeds, the return value is S_OK.

If the function fails, the return value is the appropriate COM error.

Remarks

This function must be called after an application is launched. It tells the Control Center to add the application to its list of currently running push model-aware applications.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in sti.h.
  Import Library: Included as a resource in sti.dll.

See Also

Still Image Overview, Making An Application Still Image-Aware