Share via


IScheduler::SetInterfaceMode method

Specifies whether the calling application is a console or Windows application.

Syntax

HRESULT SetInterfaceMode(
  [in] VARIANT_BOOL isConsole,
  [in] long         hwnd
);

Parameters

  • isConsole [in]
    Set to VARIANT_TRUE if the calling application is a console application: otherwise, VARIANT_FALSE.

  • hwnd [in]
    The window handle to the parent window if the application is a Windows application. Is ignored if isConsole is VARIANT_TRUE.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

The information is used to determine how to prompt the user for credentials if they are not specified in the job. If you do not call this method, the console is used.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IScheduler