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_capabilities</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
__dpmi_get_capabilities
=======================

Syntax
------

     #include <dpmi.h>
     
     int __dpmi_get_capabilities(int *_flags, char *vendor_info);

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

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

DPMI function AX = 0x0401 (DPMI 1.0 only)

Gets the capabilities of the server.  The flags are as follows:

     ---- ---X = 1="page accessed/dirty" supported
     ---- --X- = 1="exceptions restartble" supported
     ---- -X-- = 1="device mapping" supported
     ---- X--- = 1="map conventional memory" supported
     ---X ---- = 1="demand zero-fill" supported
     --X- ---- = 1="write-protect client" supported
     -X-- ---- = 1="write-protect host" supported

The vendor info is a 128-byte buffer:

     [0] host major number
     [1] host minor number
     [2..127] vendor name

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

!-1 on error, else zero.


See Also: DPMI Specification DPMI Overview

Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson