Jump to content

RMGetDriverName

From EDM2
Revision as of 18:32, 3 August 2018 by Martini (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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);