Specifications

Windows Embedded Automotive 7 Deep Dive: Phone Core and Media Core 35
The interface for GetLastError is located in HFPAPI.h. The WM_HFPERRORLOG message is raised
when a new error is logged by the HFPCore service.
The buffer that contains the errors is configurable through the registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\Automotive\HFP
The ErrorLogMaxEntries key value determines the number of error messages that are stored in
the buffer. The default value is 5. The log is cleared when the HFP connection to the phone is
closed. HFPGetLastError is used to retrieve error logs.
Table 12 lists the GetLastError wParam values.
Table 12: GetLastError wParam values
Class
Code in wParam
Outgoing Call Failures
0x00000001
Incoming Call Failures
0x00000002
Call Waiting Call Failures
0x00000004
Call Status Reporting Failures (CLCC)
0x00000008
Phonebook Download Failures
0x00000010
End Call Failure
0x00000020
2nd Outgoing Call Failure
0x00000040
Join Calls Failure
0x00000080
SCO Related Errors
0x00000100
Hold Call Failures
0x00000200
HFP AT Command Error
0x00000400
SMS Errors
0x00000800
CME Errors (phone response included)
0x00001000
Standard error values, as defined in the GSM
specification, are appended to the wParam value.