Skip to content

Latest commit

 

History

History
106 lines (75 loc) · 4.01 KB

nf-tapi-phonegetida.md

File metadata and controls

106 lines (75 loc) · 4.01 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.phoneGetIDA
phoneGetIDA function (tapi.h)
The phoneGetID function returns a device identifier for the given device class associated with the specified phone device. (phoneGetIDA)
phoneGetIDA
tapi/phoneGetIDA
tapi2\phonegetid.htm
tapi3
6a9c90ca-7a9e-43de-8075-240185658538
12/05/2018
_tapi2_phonegetid, phoneGetID, phoneGetID function [TAPI 2.2], phoneGetIDA, phoneGetIDW, tapi/phoneGetID, tapi/phoneGetIDA, tapi/phoneGetIDW, tapi2.phonegetid
tapi.h
Windows
phoneGetIDW (Unicode) and phoneGetIDA (ANSI)
Tapi32.lib
Tapi32.dll
Windows
19H1
phoneGetIDA
tapi/phoneGetIDA
c++
APIRef
kbSyntax
DllExport
Tapi32.dll
phoneGetID
phoneGetIDA
phoneGetIDW

phoneGetIDA function

-description

The phoneGetID function returns a device identifier for the given device class associated with the specified phone device.

-parameters

-param hPhone

Handle to an open phone device.

-param lpDeviceID

Pointer to a data structure of type VARSTRING where the device identifier is returned. Upon successful completion of the request, this location is filled with the device identifier. The format of the returned information depends on the method used by the device class (API) for naming devices.

-param lpszDeviceClass

Pointer to a null-terminated string that specifies the device class of the device whose identifier is requested. Valid device class strings are those used in the System.ini section to identify device classes.

-returns

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

PHONEERR_INVALPHONEHANDLE, PHONEERR_NOMEM, PHONEERR_INVALPOINTER, PHONEERR_RESOURCEUNAVAIL, PHONEERR_INVALDEVICECLASS, PHONEERR_UNINITIALIZED, PHONEERR_OPERATIONFAILED, PHONEERR_STRUCTURETOOSMALL, PHONEERR_OPERATIONUNAVAIL.

-remarks

The phoneGetID function can be used to retrieve a phone device identifier given a phone handle. It can also be used to obtain the device identifier of the media device (for device classes such as COM, wave, MIDI, phone, line, or NDIS) associated with the opened phone device. The names of these device class are not case sensitive. This identifier can then be used with the appropriate media API to select the corresponding device.

See TAPI Device Classes for device class names.

A vendor that defines a device-specific media type also needs to define the corresponding device-specific (proprietary) API to manage devices of the media type. To avoid collisions on device class names assigned independently by different vendors, a vendor should select a name that uniquely identifies both the vendor and, following it, the media type. For example: "intel/video".

Note

The tapi.h header defines phoneGetID 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

Supplementary Phone Service Functions

TAPI 2.2 Reference Overview

VARSTRING