Bewerken

Delen via


IStiDeviceControl::Release method (stiusd.h)

The IStiDeviceControl::Release method closes the instance of the COM object that was created when a minidriver client called IStiUSD::Initialize.

Syntax

ULONG Release();

Return value

If the operation succeeds, the method returns S_OK. Otherwise, it returns one of the STIERR-prefixed error codes defined in Stierr.h.

Remarks

The IStiDeviceControl::Release method should be called from within the destructor function of a user-mode still image minidriver's IStiUSD interface. (For more information, see Creating a User-Mode Still Image Minidriver.)

A still image minidriver receives an IStiDeviceControl interface pointer as input to its IStiUSD::Initialize method.

Requirements

Requirement Value
Target Platform Desktop
Header stiusd.h (include Stiusd.h)

See also

IStiDeviceControl

IStiDeviceControl::AddRef