WHAT'S NEW with version 0.0.2: - Again thanks to Eric Youngdale for some very useful comments. - The Windows startup code created by Micrsoft C 7.0 now runs to completion. - Added a new patch to the kernel to increase the usable size of the ldt to the full 32 entries currently allowed. - Imported name relocations are now supported. - Source code for my infamous test program is now included. - A handful of basic Windows functions are now emulated. See "kernel.spec" for examples of how to use the build program. WHAT'S NEW with version 0.0.1: - Eric Youngdale contributed countless improvements in memory efficiency, bug fixes, and relocation. - The build program has been completed. It now lets you specify how the main DLL entry point should interface to your emulation library routines. A brief description of how to build these specifications is included in the file "build-spec.txt". - The code to dispatch builtin DLL calls is complete, but untested.
56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
/* $Id$
|
|
*/
|
|
/*
|
|
* Copyright Robert J. Amstadt, 1993
|
|
*/
|
|
|
|
#ifndef DLLS_H
|
|
#define DLLS_H
|
|
|
|
typedef struct dll_arg_relocation_s
|
|
{
|
|
unsigned short dst_arg; /* Offset to argument on stack */
|
|
unsigned char src_type; /* Argument type */
|
|
} DLL_ARG;
|
|
|
|
#define DLL_ARGTYPE_SIGNEDWORD 0
|
|
#define DLL_ARGTYPE_WORD 1
|
|
#define DLL_ARGTYPE_LONG 2
|
|
#define DLL_ARGTYPE_FARPTR 3
|
|
#define DLL_MAX_ARGS 16
|
|
|
|
#define DLL_HANDLERTYPE_PASCAL 16
|
|
#define DLL_HANDLERTYPE_C 17
|
|
|
|
struct dll_table_entry_s
|
|
{
|
|
/*
|
|
* Relocation data
|
|
*/
|
|
unsigned int selector; /* Selector to access this entry point */
|
|
void *address; /* Offset in segment of entry point */
|
|
|
|
/*
|
|
* 16->32 bit interface data
|
|
*/
|
|
char *export_name;
|
|
void *handler; /* Address of function to process request */
|
|
int handler_type; /* C or PASCAL calling convention */
|
|
int n_args; /* Number of arguments passed to function */
|
|
DLL_ARG args[DLL_MAX_ARGS]; /* Argument conversion data */
|
|
};
|
|
|
|
struct dll_name_table_entry_s
|
|
{
|
|
char *dll_name;
|
|
struct dll_table_entry_s *dll_table;
|
|
int dll_table_length;
|
|
int dll_number;
|
|
};
|
|
|
|
extern struct dll_table_entry_s KERNEL_table[];
|
|
extern struct dll_table_entry_s USER_table[];
|
|
extern struct dll_table_entry_s GDI_table[];
|
|
extern struct dll_table_entry_s UNIXLIB_table[];
|
|
|
|
#endif /* DLLS_H */
|