Voice Message Service Developer's Reference Manual (6422-12): Alphabetical Function Reference
(Page 18 of 40 in this chapter)
vceGetOpenInfo
Description
- Gets status information about an open voice object.
Prototype
- DWORD vceGetOpenInfo ( VCEHD vh,
VCE_OPEN_INFO *openinfo,
unsigned size)
- vh Handle of an open voice object.
- openinfo Pointer to a buffer to receive the following structure:
typedef struct
{
DWORD size;
DWORD filetype;
DWORD openmode;
DWORD encoding;
CTAHD ctahd;
} VCE_OPEN_INFO;
- See the Details section for a description of these fields.
- size Size, in bytes, of the openinfo buffer.
Return Values
Events
Details
- This function retrieves status information about an open voice file or memory object.
- The VCE_OPEN_INFO structure contains the following fields:
- The VCE_OPEN_INFO data remains constant for a given handle as long as it is open.
- Use vceGetContextInfo to get time varying information pertaining to the context identified by ctahd.
- Use vceGetEncodingInfo to get information about the encoding.
See Also
- vceGetContextInfo, vceGetEncodingInfo
Example
/* Get the encoding of an open voice file*/
unsigned myGetEncoding (VCEHD vh)
{
VCE_OPEN_INFO openinfo;
if (vceGetOpenInfo (vh, &openinfo, sizeof openinfo) != SUCCESS)
return 0;
return openinfo.encoding;
}
(Page 18 of 40 in this chapter)
tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights
reserved.