Platform SDK: Broadcast Architecture

BPCSuspend.DeviceRelease

The DeviceRelease method causes the Video Access server to attempt to release all devices. Visual Basic syntax is shown.

object.DeviceRelease(lPriority, pps)

Parts

object
Object expression that resolves to a BPCSuspend object.
lPriority
Reserved. This value should be set to zero.
pps
Reference to a BPCSuspended object. If the Video Access server successfully releases all devices, the pps parameter contains a reference to a valid BPCSuspended object. Otherwise, pps contains Nothing.

Remarks

Your application should not use the BPCSuspend or BPCSuspended class while it is in a state in which cross-process COM calls are disallowed. For example, if your application is currently processing a call to the Win32 SendMessage function or a broadcast system message any cross-process COM calls fail with an RPC_E_CANTCALLOUT_ININPUTSYNCCALL error code. If your application is in such a state when it attempts to suspend the Video Access server, the running object table can become corrupt and lock up the server.

For more information on suspending the Video Access server and releasing devices, see Suspending the Video Access Server.

Requirements

  Windows NT/2000: Unsupported.
  Windows 95/98: Requires Windows 98.
  Header: Declared in vidsvr.odl.
  Import Library: Included as a resource in vid.ocx.

See Also

BPCSuspend, BPCSuspended