Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function enables an application to query the specified open phone device for its overall status.
Syntax
LONG WINAPI phoneGetStatus( HPHONE hPhone, LPPHONESTATUS lpPhoneStatus ); |
Parameters
- hPhone
-
Handle to the open phone device to be queried.
- lpPhoneStatus
-
Pointer to a variably sized data structure of type PHONESTATUS, which is loaded with the returned information about the phone's status.
Return Value
Zero indicates success. A negative error number indicates that an error occurred. The following table shows the return values for this function.
Value | Description |
---|---|
PHONEERR_INVALPHONEHANDLE |
The phone handle is invalid. |
PHONEERR_INVALPOINTER |
The pointer is invalid. |
PHONEERR_OPERATIONFAILED |
The operation failed. |
PHONEERR_OPERATIONUNAVAIL |
The operation is unavailable. |
PHONEERR_NOMEM |
Not enough memory is available. |
PHONEERR_RESOURCEUNAVAIL |
The resource is unavailable. |
PHONEERR_STRUCTURETOOSMALL |
The structure is too small. |
PHONEERR_UNINITIALIZED |
The parameter is uninitialized. |
Remarks
An application can use this function to determine the current state of an open phone device. The status information describes information about the phone device's hookswitch devices, ringer, volume, display, and lamps.
Requirements
Header | tapi.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.