6 ORDINAL VARTYPE EXPORTNAME (DATA [DATA [DATA [...]]])
8 ORDINAL FUNCTYPE EXPORTNAME([ARGTYPE [ARGTYPE [...]]]) HANDLERNAME
10 ORDINAL stub EXPORTNAME
12 ORDINAL equate EXPORTNAME DATA
14 ORDINAL return EXPORTNAME ARGLENGTH RETVALUE
16 ORDINAL extern EXPORTNAME SYMBOLNAME
24 "name" and "type" fields are mandatory. Specific ordinal
25 declarations are optional, but the default handler will print an error
26 message. "base" gives the offset of the first ordinal; default is 0.
27 "heap" is the size of the module local heap (only valid for Win16
28 modules); default is no local heap. Lines whose first character is a
29 '#' will be ignored as comments.
34 This type defines data storage at the ordinal specified. You may
35 store items as bytes, 16-bit words, or 32-bit words.
36 "ORDINAL" is replaced by the ordinal number corresponding to the
37 variable. "VARTYPE" should be "byte", "word" or "long" for 8, 16, or
38 32 bits respectively. "EXPORTNAME" will be the name available for
39 dynamic linking. "DATA" can be a decimal number or a hex number preceeded
40 by "0x". The following example defines the variable "VariableA" at
41 ordinal 2 and containing 4 bytes:
43 2 byte VariableA(-1 0xff 0 0)
48 This type defines a function entry point. The prototype defined by
49 "EXPORTNAME ([ARGTYPE [ARGTYPE [...]]])" specifies the name available for
50 dynamic linking and the format of the arguments. "ORDINAL" is replaced
51 by the ordinal number corresponding to the function.
53 "FUNCTYPE" should be one of:
54 - "pascal16" for a Win16 function returning a 16-bit value
55 - "pascal" for a Win16 function returning a 32-bit value
56 - "register" for a function using CPU register to pass arguments
57 - "stdcall" for a normal Win32 function
58 - "cdecl" for a Win32 function using the C calling convention
60 "ARGTYPE" should be one of:
64 - "ptr" (linear pointer)
65 - "str" (linear pointer to a null-terminated string)
66 - "s_byte" (signed byte)
67 - "s_word" (signed word)
68 - "s_long" (signed long)
69 - "segptr" (segmented pointer).
70 - "segstr" (segmented pointer to a null-terminated string)
72 Only "ptr", "str" and "long" are valid for Win32 functions.
74 "HANDLERNAME" is the name of the actual Wine function that will
75 process the request in 32-bit mode.
77 This first example defines an entry point for the CreateWindow()
78 call (the ordinal 100 is just an example):
80 100 pascal CreateWindow(ptr ptr long s_word s_word s_word s_word
84 This second example defines an entry point for the GetFocus()
85 call (the ordinal 100 is just an example):
87 100 pascal GetFocus() WIN_GetFocus()
89 To declare a function using a variable number of arguments, specify
90 the function as taking no arguments. In this special case, in Win32
91 the called function will be passed a pointer to the first arg; in
92 Win16, the args are available with CURRENT_STACK16->args. See the
93 wsprintf* functions in user.spec and user32.spec for an example.
98 This type defines a stub function. It makes the name and ordinal
99 available for dynamic linking, but will terminate execution with an
100 error message if the function is ever called.
105 This type defines an ordinal as an absolute value.
106 "ORDINAL" is replaced by the ordinal number corresponding to the
107 variable. "EXPORTNAME" will be the name available for dynamic linking.
108 "DATA" can be a decimal number or a hex number preceeded by "0x".
113 This type defines a function entry point whose handler should do
114 nothing but return a value.
115 "ORDINAL" is replaced by the ordinal number corresponding to the
116 variable. ARGLENGTH is the number of bytes that need to be removed
117 from the stack before returning to the caller. RETVALUE is the
118 return value which will be passed back to the caller.
123 This type defines an entry that simply maps to a Wine symbol
124 (variable or function); "EXPORTNAME" will point to the symbol
125 "SYMBOLNAME" that must be defined in C code. This type only works with