delorie.com/djgpp/doc/libc/libc_221.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__dpmi_get_capabilities

Syntax

 
#include <dpmi.h>

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

Description

Please refer to the DPMI Specification (see section DPMI Specification) for details on DPMI function call operation. Also see the DPMI Overview (see section DPMI Overview) for general information.

DPMI function AX = 0x0401 (DPMI 1.0 only). Not supported by CWSDPMI and Windows.

Gets the capabilities of the server. 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

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004