Article View: comp.os.msdos.programmer
Article #3779Help needed using XMS function 'MoveExtendedMemory'
From: smhkotmans
Date: Mon, 12 Oct 1992 11:46
Date: Mon, 12 Oct 1992 11:46
33 lines
1677 bytes
1677 bytes
Hi Netters,
Can someone outthere please help me with the following question concerning
the XMS function 2Fh, sub-function 0Bh (Move Extended Memory Block).
This function can be used to move blocks of extended memory, that are allocated
by using function 2Fh sub-function 09h. It could however also be used by moving
blocks of data in conventional memory to or from extended memory, so the manual
says.
The structure used by the MoveExtendedMemory function to identify the memory
blocks is pictured below.
stuct {
long length; /* length of block to move */
short sourceHandle; /* handle of block to move */
long sourceOffset; /* ??? */
short destHandle; /* handle of block to move to */
long destOffset; /* ??? */
} XMS_move_struct;
My question is:
a) What does this 'sourceOffset' and 'destOffset' mean, because the
AllocateExtendedMemory function only returns a 'handle' on success.
b) What 'handle' do i specify when moving data between conventional
memory and extended memory?
c) Do i use the correct function at all?
I am a junior in XMS/EMS programming, so all advice is gratefully accepted.
Tanks in advance,
Henk Kotmans
Technical Details
Message-ID:
<1992Oct12.124646.131047@mswe.dnet.ms.philips.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!ames!haven.umd.edu!darwin.sura.net!jvnc.net!gmd.de!Germany.EU.net!mcsun!sun4nl!phigate!mswe.dnet.ms.philips.nl!smhkotmansShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!ames!haven.umd.edu!darwin.sura.net!jvnc.net!gmd.de!Germany.EU.net!mcsun!sun4nl!phigate!mswe.dnet.ms.philips.nl!smhkotmans From: smhkotmans@mswe.dnet.ms.philips.nl Newsgroups: comp.os.msdos.programmer Subject: Help needed using XMS function 'MoveExtendedMemory' Message-ID: <1992Oct12.124646.131047@mswe.dnet.ms.philips.nl> Date: 12 Oct 92 11:46:45 GMT Organization: Philips Medical Systems Nederland Lines: 33