Programming Manual
31
Vibrator Related Functions
VibratorOn
This function turns on or off Vibration indicator
DWORD VibratorOn
{
BOOL
bOn
}
Parameters
bOn
[in] Flag that indicates whether turn on vibrator(TRUE) or turn off vibrator(FALSE).
Return Values
If function succeeds, the return value is
E_FUNC_SUCCEED
. If function fails, possible return value is
E_FUNC_ERROR
,
E_FUNC_PAR_ERROR
.
Remarks
You can use this function to vibrate the terminal to indicate operator that some thing happened. Called this function
will not change the “Scanner Vibrator” setting.
Example
DWORD dwResult;
dwResult = VibratorOn(TRUE);
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("VibratorOn fail"));
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT61