jaclu@world.std.com (jacob lundqvist) (09/13/90)
I'm tring to use the function ChangeSelector( wDestSelector, wSourceSelector ) It is documented both in the online manual for SDK, and in 16.1.3 of the "Guide to Programming" (vers 3.0). The linker acceppts the other two selector-functions I'm using, AllocSelector( ) & FreeSelector( ), but cannot find ChangeSelector( ). I have searched for it in all the libraries, and it is simply not there! Does anybody know the status of this function? How can I use it? /Lun
TKOP-ML@finou.oulu.fi (Mikko Laanti) (09/14/90)
------- Microsoft (intentionally?) left some definitions out of their SDK toolkit. You have to give the definitions given below to use these documented (but not defined functions). You can find more KERNEL numbers with command: EXEHDR -v KERNEL.EXE > KERNEL.LST <file: KERNEL.LST> ------------------------------------------------------------- Exports: ord seg offset name 173 254 f000 __ROMBIOS exported 19 1 0be7 GLOBALUNLOCK exported 184 1 091b GLOBALDOSALLOC exported === ============== ------------------------------------------------------------- <file: windows.h> --------------------- cut here --------------------------------- WORD FAR PASCAL ChangeSelector(WORD, WORD); DWORD FAR PASCAL GlobalDosAlloc(DWORD); WORD FAR PASCAL GlobalDosFree(WORD); --------------------- cut here --------------------------------- <file: *.DEF> --------------------- cut here --------------------------------- IMPORTS GHANGESELECTOR = KERNEL.177 GLOBALDOSALLOC = KERNEL.184 GLOBALDOSFREE = KERNEL.185 --------------------- cut here --------------------------------- Mikko Laanti Univ. of Oulu TKOP-ML at FINOU.OULU.FI
matts@microsoft.UUCP (Matt SAETTLER) (09/14/90)
In article <1990Sep12.195335.28444@world.std.comJacob> jaclu@world.std.com (jacob lundqvist) writes:
Jacob>I'm tring to use the function ChangeSelector( wDestSelector, wSourceSelector )
Jacob>It is documented both in the online manual for SDK, and in 16.1.3 of the
Jacob>"Guide to Programming" (vers 3.0).
Jacob>
Jacob>The linker acceppts the other two selector-functions I'm using,
Jacob>AllocSelector( ) & FreeSelector( ), but cannot find ChangeSelector( ).
Jacob>I have searched for it in all the libraries, and it is simply not there!
Jacob>
Jacob>Does anybody know the status of this function? How can I use it?
Jacob> /Lun
This was inadvernantly left out of the implib for Kernel.
Place this in your .DEF file:
IMPORTS
ChangeSelector=kernel.177
FYI:
The IMPORTS section is described on page 10-6 of the SDK documentation.
------------------------------------------
MattS
I speak only for myself, or so I'm told to say.