Platform SDK: TAPI |
The SetDevConfig function allows the application to restore the configuration of a media stream device on a line device to a setup previously obtained using GetDevConfig.
HRESULT SetDevConfig( BSTR pDeviceClass, DWORD dwSize, BYTE *pDeviceConfig );
Value | Meaning |
---|---|
S_OK | Method succeeded. |
E_POINTER | The pDeviceClass, pdwSize, or ppDeviceConfig parameter is not a valid pointer. |
E_INVALIDARG | The pdwSize parameter is zero. |
E_OUTOFMEMORY | Insufficient memory exists to perform the operation. |
This method is a COM wrapper for the LineSetDevConfig TAPI 2.1 function.
The GetID must be performed prior to calling this method.
The application must use SysAllocString to allocate memory for the pDeviceClass parameter and use SysFreeString to free the memory when the variable is no longer needed.
Windows NT/2000: Requires Windows 2000.
Version: Requires TAPI 3.0 or later.
Header: Declared in Tapi3.h.
Library: Use T3iid.lib.
ITLegacyAddressMediaControl, GetDevConfig, ITLegacyCallMediaControl
TAPI 2.1 Cross-reference: LineGetDevConfig, LineSetDevConfig