-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSETMODE.ASM
executable file
·89 lines (76 loc) · 2.02 KB
/
SETMODE.ASM
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
page ,132
;-----------------------------Module-Header-----------------------------;
; Module Name: SETMODE.ASM
;
; This module contains the routine which is called by the control
; panel when a device is to change modes.
;
; Created: 16-Jan-1987
; Author: **** ***** [*****]
;
; Copyright (c) 1983-1987 Microsoft Corporation
;
; Exported Functions: DeviceMode
;
; Public Functions: none
;
; Public Data: none
;
; General Description:
;
; This function is a nop for all display drivers.
;
; Restrictions:
;
;-----------------------------------------------------------------------;
.xlist
include cmacros.inc
.list
createSeg _BLUEMOON,BlueMoonSeg,word,public,CODE
sBegin BlueMoonSeg
assumes cs,BlueMoonSeg
page
;--------------------------Exported-Routine-----------------------------;
; INT DeviceMode(hWnd,hInst,lpDeviceType,lpOutputFile)
; HWND hWnd;
; HINST hInst;
; LPSTR lpDeviceType;
; LPSTR lpOutputFile;
;
; This routine is a nop for all display drivers. It returns -1 to
; show success, just to keep everyone happy.
;
; Warnings:
; none
; Effects:
; none
; Calls:
; none
; History:
; Wed 12-Aug-1987 17:29:30 -by- **** ***** [*****]
; made non-resident
;
; Fri 16-Jan-1987 17:52:12 -by- **** ***** [*****]
; Initial version
;-----------------------------------------------------------------------;
;------------------------------Pseudo-Code------------------------------;
; INT DeviceMode(hWnd,hInst,lpDeviceType,lpOutputFile)
; HWND hWnd;
; HINST hInst;
; LPSTR lpDeviceType;
; LPSTR lpOutputFile;
; {
; return (-1);
; }
;-----------------------------------------------------------------------;
cProc DeviceMode,<FAR,PUBLIC,WIN,PASCAL>,<si,di>
parmW h_wnd ;Handle to window
parmW h_inst ;Handle to instance
parmD lp_device_type ;Pointer to device (e.g. "HP7470")
parmD lp_output_file ;Pointer to output file (e.g. COM1:)
cBegin <nogen>
mov ax,-1 ;Show success
ret 12 ;Return, popping parameters
cEnd <nogen>
sEnd BlueMoonSeg
end