GetSourceInfo
Previous  Top  Next


   SHORT error = GetSourceInfo (
            [out] SHORT sourceType,
            [out] SHORT targetType,
            [out] SHORT active,
            [out] SHORT disconnected
            )

Description

This method gets information about the current source selected by DestNumber and SourceNumber.

Parameters

On return from the method, the parameters contain information about the source only if the value returned by the method is MSSMERR_NOERROR.

sourceTypeis the Source Type.  
 
targetTypeis the source Target Type.  
 
activeis non-zero if the source is currently active (in use), zero otherwise.  
 
disabledis non-zero if the source is currently disabled, otherwise it is zero.  

Return value

The return value is MSSMERR_NOERROR (0) if the source information was found, otherwise the value returned indicates an error.