Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>__dpmi_get_descriptor</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
__dpmi_get_descriptor
=====================

Syntax
------

     #include <dpmi.h>
     
     int __dpmi_get_descriptor(int _selector, void *_buffer);

Description
-----------

Please refer to DPMI Specification: for details on DPMI function   
call operation.  Also see DPMI Overview: for general information.   

DPMI function AX = 0x000b

This function fills a 8-byte buffer with the parameters of the
descriptor.  The data has the following format:

     [0] XXXX XXXX = segment limit [7:0]
     [1] XXXX XXXX = segment limit [15:8]
     [2] XXXX XXXX = base address [7:0]
     [3] XXXX XXXX = base address [15:8]
     [4] XXXX XXXX = base address [23:16]
     [5] ---- XXXX = type
     [5] ---X ---- = 0=system, 1=application
     [5] -XX- ---- = priviledge level
     [5] X--- ---- = 0=absent, 1=present
     [6] ---- XXXX = segment limit [19:16]
     [6] ---X ---- = available for user
     [6] --0- ---- = must be zero
     [6] -X-- ---- = 0=16-bit 1=32-bit (cs only)
     [6] X--- ---- = 0=byte-granular (small) 1=page-granular (big)
     [7] XXXX XXXX = base address [31:24]

Return Value
------------

-1 on error, else zero.


See Also: DPMI Specification DPMI Overview

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson