ISurrogateService::P rocessShutdown 方法 (objidl.h)

關閉進程。

語法

HRESULT ProcessShutdown(
  [in] ShutdownType shutdownType
);

參數

[in] shutdownType

關機類型,如中所述。

傳回值

如果方法成功,傳回值會S_OK。 否則,它會E_UNEXPECTED。

備註

關機類型是由下列列舉所定義。

typedef enum tagShutdownType { 
    IdleShutdown, 
    ForcedShutdown
} ShutdownType;

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 objidl.h

另請參閱

CoGetInterceptor

ICallFrame

ICallFrameEvents

ICallInterceptor

ICallUnmarshal

ISurrogateService