Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SCR_ALLOCLDTOFF (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(ppv, pvAddrInfo, 0x0075, 0x0003, hDevice)
PVOID FAR * ppv; /* pointer to variable to receive selector:offset */
PVOID pvAddrInfo; /* pointer to structure with address info */
HFILE hDevice; /* device handle */
The SCR_ALLOCLDTOFF function allocates a logical descriptor table (LDT)
selector and offset for an area of memory.
Parameter Description
────────────────────────────────────────────────────────────────────────────
ppv Points to the variable that receives the allocated selector and
offset.
pvAddrInfo Points to the LDTADDRINFO structure that contains the address
and size of memory for which a selector is requested.
hDevice Identifies the screen device that receives the device-control
function. This handle must have been created previously by using
the DosOpen function.
Return Value
The return value is zero if the function is successful or the error
ERROR_I24_INVALID_PARAMETER if an error occurs.
Comments
Read/Write access is granted to data areas completely contained in the
address range 0xA0000 through 0xBFFFF. Read-only access is granted to data
areas outside this range, but inside the range 0x00000 through 0xFFFFF.
Attempts to access any address outside this range result in an error.
See Also
SCR_ALLOCLDT, SCR_DEALLOCLDT, LDTADDRINFO
♦