IStiDeviceControl::AddRef method

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

Syntax

ULONG AddRef();

Parameters

This method has no parameters.

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

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

See also

IStiDeviceControl

IStiDeviceControl::Release