次の方法で共有


CPullPin::Connect (Compact 2013)

3/26/2014

Initiates a connection from this pin to the asynchronous reader.

Syntax

HRESULT Connect(
  Iunknown *pUnk,
  ImemAllocator *pAlloc,
  BOOL bSync 
);

Parameters

  • pUnk
    Object to query for existence of asynchronous reader (IAsyncReader).
  • pAlloc
    Optional allocator to propose as preferred allocator if necessary.
  • bSync
    Set TRUE if the reader uses synchronous rather than asynchronous reads.

Return Value

Returns S_OK if successfully connected to the IAsyncReader interface from the object specified by pUnk.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CPullPin Class