RMGetDriverName: Difference between revisions
Appearance
Created page with "This rmcall helper service can retrieve the name of a device driver from a base device driver init packet. ==Syntax== RMGetDriverName(pRP, pBuf, size); ==Parameters== ; pRP..." |
(No difference)
|
Latest revision as of 17:32, 3 August 2018
This rmcall helper service can retrieve the name of a device driver from a base device driver init packet.
Syntax
RMGetDriverName(pRP, pBuf, size);
Parameters
- pRP (PRPINITIN)
- Pointer to init request packet.
- pBuf (PSZ)
- Pointer to character buffer for device driver name.
- size (USHORT)
- Buffer size.
Return Code
- rc (APIRET) - returns
- Contents of pBuf will be a null-terminated device driver name. If unable to determine the device driver name, the contents of pBuf will be a zero-length null-terminated string.
Remarks
None.
Example Code
C
#include <os2.h> #include <reqpkt.h> #include <rmcalls.h> PRPINITIN pRP; PSZ pBuf; USHORT size; APIRET rc; rc = RMGetDriverName(pRP, pBuf, size);