blob: e5c1061d9539ce8757a21821b416f87ec40a1866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
; module-definition file for testdll -- used by LINK.EXE
NAME telnet ; application's module name
DESCRIPTION 'Sample Microsoft Windows Application'
EXETYPE WINDOWS ; required for all Windows applications
STUB 'WINSTUB.EXE' ; Generates error message if application
; is run without Windows
;CODE can be moved in memory and discarded/reloaded
CODE PRELOAD MOVEABLE
;DISCARDABLE
;DATA must be MULTIPLE if program can be invoked more than once
DATA PRELOAD MOVEABLE
HEAPSIZE 10240
; All functions that will be called by any Windows routine
; MUST be exported.
EXPORTS
MainWndProc @1 ; name of window processing function
OpenTelnetDlg @3 ; name of "Open New Telnet Connection" Dialog Function
IMPORTS
WINSOCK.WSAStartup
WINSOCK.WSACleanup
WINSOCK.WSAAsyncSelect
WINSOCK.WSAGetLastError
WINSOCK.WSAAsyncGetHostByName
WINSOCK.listen
WINSOCK.accept
WINSOCK.__wsafdisset
WINSOCK.socket
WINSOCK.bind
WINSOCK.gethostbyname
WINSOCK.getsockname
WINSOCK.htons
WINSOCK.connect
WINSOCK.recv
WINSOCK.send
WINSOCK.htonl
WINSOCK.closesocket
WINSOCK.select
WINSOCK.ioctlsocket
WINSOCK.getpeername
|