Compartilhar via


IOCTL_STREAM_CREATE_LOCAL_PLUG (Windows CE 5.0)

Send Feedback

This IOCTL permits the caller to create and export a local plug.

Parameters

  • hDevice
    [in] Handle to the target object. To get a device handle, call the CreateFile function with a name dynamically obtained from the SetupDiEnumDeviceInterfaces function.
  • dwIoControlCode
    [in] IOCTL for the operation. This value identifies the target operation and the type of device on which to perform the operation. For this operation, use IOCTL_STREAM_CREATE_LOCAL_PLUG.
  • lpInBuffer
    [in] Must be filled in with a properly initialized STREAM_CreateLocalPlug_Request structure. The sclp_Direction, sclp_MediaType, sclp_MaximumThroughput, sclp_ClusterDimension, and sclp_SampleFrequency members must be pre-initialized.
  • BufferSize
    [in] Set to sizeof(STREAM_CreateLocalPlug_Request).
  • lpOutBuffer
    [out] This field should be set to point to a STREAM_CreateLocalPlug_Response structure.
  • nOutBufferSize
    [in] This field should be set to at least sizeof(STREAM_CreateLocalPlug_Response).
  • lpBytesReturned
    [out] Pointer to a DWORD variable that receives the actual count of bytes returned by the function in the output buffer.
  • lpOverlapped
    [out] If not used, set to NULL. Otherwise, this should point to a completely filled out OVERLAPPED structure that contains a valid event. The event will be signaled when the I/O operation is complete.

Return Values

If the operation succeeds, the DeviceIoControl function returns a non-zero value. If the operation fails, DeviceIoControl returns zero. To obtain extended error information, call the GetLastError function.

Remarks

There is a similar IOCTL available through the unit filter driver. Plugs created through that driver are externally visible. Plugs created through the streaming filter driver are not externally visible.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Avc_stream.h.

See Also

IOCTL_STREAM_DELETE_LOCAL_PLUG | CreateFile | STREAM_CreateLocalPlug_Request | STREAM_CreateLocalPlug_Response | DeviceIoControl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.