delorie.com/djgpp/doc/libc/libc_258.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <dpmi.h> int __dpmi_segment_to_descriptor(int _segment); |
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 = 0x0002
This function returns a selector that maps to what the real-mode segment provided would have referenced. Warning: this is a scarce resource.
-1 on error, else the selector.
ANSI/ISO C | No |
POSIX | No |
short video = __dpmi_segment_to_descriptor(0xa000); movedata(_my_ds(), buffer, video, 0, 320*200); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |