Skip to content

Latest commit

 

History

History
123 lines (83 loc) · 4.66 KB

nf-tapi-phonegetdevcapsw.md

File metadata and controls

123 lines (83 loc) · 4.66 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:tapi.phoneGetDevCapsW
phoneGetDevCapsW function (tapi.h)
The phoneGetDevCapsW (Unicode) function (tapi.h) queries a specified phone device to determine its telephony capabilities.
_tapi2_phonegetdevcaps
phoneGetDevCaps
phoneGetDevCaps function [TAPI 2.2]
phoneGetDevCapsW
tapi/phoneGetDevCaps
tapi/phoneGetDevCapsW
tapi2.phonegetdevcaps
tapi2\phonegetdevcaps.htm
tapi3
7bfef6d7-d5fd-4887-afb8-b1d850df050d
08/09/2022
_tapi2_phonegetdevcaps, phoneGetDevCaps, phoneGetDevCaps function [TAPI 2.2], phoneGetDevCapsA, phoneGetDevCapsW, tapi/phoneGetDevCaps, tapi/phoneGetDevCapsA, tapi/phoneGetDevCapsW, tapi2.phonegetdevcaps
tapi.h
Windows
phoneGetDevCapsW (Unicode) and phoneGetDevCapsA (ANSI)
Tapi32.lib
Tapi32.dll
Windows
19H1
phoneGetDevCapsW
tapi/phoneGetDevCapsW
c++
APIRef
kbSyntax
DllExport
Tapi32.dll
phoneGetDevCaps
phoneGetDevCapsA
phoneGetDevCapsW

phoneGetDevCapsW function

-description

The phoneGetDevCaps function queries a specified phone device to determine its telephony capabilities.

-parameters

-param hPhoneApp

Handle to the application's registration with TAPI.

-param dwDeviceID

Identifier of the phone device to be queried.

-param dwAPIVersion

Version number of the Telephony API to be used. The high-order word contains the major version number; the low-order word contains the minor version number. This number is obtained with the function phoneNegotiateAPIVersion.

-param dwExtVersion

Version number of the service provider-specific extensions to be used. This number is obtained with the function phoneNegotiateExtVersion. It can be left zero if no device-specific extensions are to be used. Otherwise, the high-order word contains the major version number; the low-order word contains the minor version number.

-param lpPhoneCaps

Pointer to a variably sized structure of type PHONECAPS. Upon successful completion of the request, this structure is filled with phone device capabilities information.

-returns

Returns zero if the request succeeds or a negative error number if an error occurs. Possible return values are:

PHONEERR_INVALAPPHANDLE, PHONEERR_INVALPOINTER, PHONEERR_BADDEVICEID, PHONEERR_OPERATIONFAILED, PHONEERR_INCOMPATIBLEAPIVERSION, PHONEERR_OPERATIONUNAVAIL, PHONEERR_INCOMPATIBLEEXTVERSION, PHONEERR_NOMEM, PHONEERR_STRUCTURETOOSMALL, PHONEERR_RESOURCEUNAVAIL, PHONEERR_NODRIVER, PHONEERR_UNINITIALIZED, PHONEERR_NODEVICE.

-remarks

Before using phoneGetDevCaps, the application must negotiate the TAPI version number to use (see phoneNegotiateAPIVersion) and, optionally, the extension version to use (see phoneNegotiateExtVersion).

TAPI and extension version numbers are those under which TAPI, Telephony DLL, and service provider must operate. If version ranges do not overlap, the application and API or service-provider versions are incompatible and an error is returned.

Note

The tapi.h header defines phoneGetDevCaps as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

PHONECAPS

Supplementary Phone Service Functions

TAPI 2.2 Reference Overview

phoneNegotiateAPIVersion

phoneNegotiateExtVersion