次の方法で共有


CMsgThread::SuspendThread (Compact 2013)

3/26/2014

Uses the Win32 SuspendThread function to suspend the operation of a running thread.

Syntax

DWORD SuspendThread( );

Parameters

None.

Return Value

If the member function succeeds, the return value is the previous suspend count of the thread.

If the member function fails, the return value is 0xFFFFFFFF.

To obtain extended error information, call the Win32 GetLastError function.

Remarks

The client thread calls this member function to suspend the operation of the worker thread. The worker thread remains suspended and will not execute until an additional call to the CMsgThread::ResumeThread member function is made.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMsgThread Class