Go to the first, previous, next, last section, table of contents.


__dpmi_get_capabilities

Syntax

#include <dpmi.h>

int __dpmi_get_capabilities(int *_flags, char *vendor_info);

Description

Please refer to section DPMI Specification for details on DPMI function call operation. Also see section 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.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.