Udio, Elated, Unctions – Argox PT-9130 User Manual

Page 16: Audio_getvolume, Audio related functions

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 9

Audio Related Functions

Audio_GetVolume

To query the current audio volume level setting.

DWORD Audio_GetVolume

{

LPDWORD

lpdwVolume

}

Parameters

lpdwVolume

[out] The current volume level setting.

Returned Values

If this action succeeds, the returned value is

E_FUNC_SUCCEED

. If this action fails, the returned value is

E_FUNC_ERROR

.

Example

DWORD dwResult, dwVolume;

dwResult = Audio_GetVolume(&dwVolume);

if(dwResult != E_FUNC_SUCCEED)

AfxMessageBox(_T("Audio_GetVolume fail"));

else

{

CString strTemp;

strTemp.Format(_T("Volume:

%d"),dwVolume);

AfxMessageBox(strTemp);

}

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib
Link DLL: sysapiax.dll
Device: PT90

Advertising