DspQueryDriverNames: Difference between revisions
Appearance
Created page with "This function returns a list of the names of all PM display drivers that have been registered with the operating system (by using DspSetDriverInfo). ==Syntax== DspQueryDrive..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
This function returns a list of the names of all PM display drivers that have been registered with the operating system (by using DspSetDriverInfo). | This function returns a list of the names of all PM display drivers that have been registered with the operating system (by using DspSetDriverInfo). | ||
==Syntax== | ==Syntax== | ||
DspQueryDriverNames(pBuffer, ulCount) | DspQueryDriverNames(pBuffer, ulCount) | ||
==Parameters== | ==Parameters== | ||
;pBuffer (PVOID) - input | ;pBuffer (PVOID) - input:Pointer to a buffer. | ||
:Pointer to a buffer. | :Pointer to the buffer in which the driver names are returned. The names are NULL-terminated strings with one immediately following another. The final string is followed by two NULL characters. | ||
;ulCount (ULONG) - input:The maximum number of bytes that can be returned in pBuffer. | |||
:Pointer to the buffer in which the driver names are returned. The names are NULL-terminated strings with one immediately following another. The final string is followed by two NULL characters. | |||
;ulCount (ULONG) - input | |||
:The maximum number of bytes that can be returned in pBuffer. | |||
==Return Code== | ==Return Code== | ||
; rc (ULONG) - returns | ; rc (ULONG) - returns: Return codes. | ||
: Return codes. | :On completion, the return value is of type ULONG and is the number of bytes actually returned in pBuffer. | ||
:On completion, the return value is of type ULONG and is the number of bytes actually returned in pBuffer. | |||
<PRE> | <PRE> | ||
#include <os2.h> | #include <os2.h> | ||
Line 27: | Line 21: | ||
rc = DspQueryDriverNames(pBuffer, ulCount); | rc = DspQueryDriverNames(pBuffer, ulCount); | ||
</PRE> | </PRE> | ||
[[Category:Gre]] | [[Category:Gre]] |
Revision as of 07:58, 22 February 2020
This function returns a list of the names of all PM display drivers that have been registered with the operating system (by using DspSetDriverInfo).
Syntax
DspQueryDriverNames(pBuffer, ulCount)
Parameters
- pBuffer (PVOID) - input
- Pointer to a buffer.
- Pointer to the buffer in which the driver names are returned. The names are NULL-terminated strings with one immediately following another. The final string is followed by two NULL characters.
- ulCount (ULONG) - input
- The maximum number of bytes that can be returned in pBuffer.
Return Code
- rc (ULONG) - returns
- Return codes.
- On completion, the return value is of type ULONG and is the number of bytes actually returned in pBuffer.
#include <os2.h> PVOID pBuffer; /* Pointer to a buffer. */ ULONG ulCount; ULONG rc; /* Return codes. */ rc = DspQueryDriverNames(pBuffer, ulCount);