<<< Beep API Call | Index | Calling Beep from Assembly >>> |
Most kernel32 API calls return result in EAX reqister.
If Beep function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, application can call GetLastError API:
// C example: DWORD result = Beep( frequency, ms ); if ( result == 0 ) { DWORD error_code = GetLastError(); }
<<< Beep API Call | Index | Calling Beep from Assembly >>> |