DCMD_CHR_PNPTEXT

Get the text associated with a plug and play device

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_PNPTEXT   __DIOF(_DCMD_CHR, 99, char)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_PNPTEXT
dev_data_ptr A pointer to a char buffer
n_bytes The size of the buffer
dev_info_ptr NULL

Description:

This command gets the text associated with a plug and play device. This command is usually associated with printer devices.

Input:

None.

Output:

The plug and play device's text.

Example:

char	buf[500];

if(devctl(fd, DCMD_CHR_PNPTEXT, buf, sizeof(buf), NULL) == EOK)
{
   /* Parse the plug and play text. */
}

See also:

devctl() in the QNX Neutrino C Library Reference