IStiDeviceControl::AddRef method (stiusd.h)

The IStiDeviceControl::AddRef method increments the reference count for the IStiDeviceControl interface.

Syntax

ULONG AddRef();

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::AddRef method should be called from within a user-mode still image minidriver's IStiUSD::Initialize method.

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

Requirements

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

See also

IStiDeviceControl

IStiDeviceControl::Release