| Updated: October 28, 2024 |
Get the text associated with a plug and play device
#include <sys/dcmd_chr.h> #define DCMD_CHR_PNPTEXT __DIOF(_DCMD_CHR, 99, char)
| 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 |
This command gets the text associated with a plug and play device. This command is usually associated with printer devices.
None.
The plug and play device's text.
char buf[500];
if(devctl(fd, DCMD_CHR_PNPTEXT, buf, sizeof(buf), NULL) == EOK)
{
/* Parse the plug and play text. */
}
devctl() in the QNX Neutrino C Library Reference