⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cwindows.inc

📁 dos 1.0 其中包含quick basic源代码、内存管理himem emm386 发展历史
💻 INC
📖 第 1 页 / 共 2 页
字号:

dxCharInft	equ	[byte ptr 00000h]
dyCharInft	equ	[byte ptr 00001h]
dyBaseLineInft	equ	[byte ptr 00002h]
ifontInft	equ	[byte ptr 00003h]
cbInftMin	equ	00004h
finstText	equ	1
finstGraphics	equ	2
finstMonochrome	equ	4
finstAlternate	equ	8
finstFont	equ	00010h
finstCgaSnow	equ	00020h
finstDisableMouse	equ	01000h
finstFastScroll	equ	02000h
finstQuestionable	equ	04000h
finstAvailable	equ	08000h

finstInst	equ	[word ptr 00000h]
axMacInst	equ	[byte ptr 00002h]
ayMacInst	equ	[byte ptr 00003h]
coMacInst	equ	[byte ptr 00004h]
covMacInst	equ	[byte ptr 00005h]
coiMacInst	equ	[word ptr 00006h]
imodeInst	equ	[word ptr 00008h]
inftInst	equ	[dword ptr 0000Ah]
LO_inftInst	equ	[word ptr 0000Ah]
HI_inftInst	equ	[word ptr 0000Ch]
ffontSupportedInst	equ	[word ptr 0000Eh]
psPrimInst	equ	[word ptr 00010h]
psSecInst	equ	[word ptr 00012h]
cwExtraInst	equ	[word ptr 00014h]
psExtraInst	equ	[word ptr 00016h]
bits0Inst	equ	[word ptr 00018h]
bits0recInst	record	fillerInst:15,fAllocPrimInst:1
wDriver1Inst	equ	[word ptr 0001Ah]
reserved2Inst	equ	[0001Ch]
cbInstMin	equ	0002Ah
imodeUnknown	equ	0FFFFh

_chTopLeftCorner1Inch	equ	[byte ptr 00000h]
_chTopRightCorner1Inch	equ	[byte ptr 00001h]
_chBottomLeftCorner1Inch	equ	[byte ptr 00002h]
_chBottomRightCorner1Inch	equ	[byte ptr 00003h]
_chTopSide1Inch	equ	[byte ptr 00004h]
_chBottomSide1Inch	equ	[byte ptr 00005h]
_chLeftSide1Inch	equ	[byte ptr 00006h]
_chRightSide1Inch	equ	[byte ptr 00007h]
_chMiddleLeft1Inch	equ	[byte ptr 00008h]
_chMiddleRight1Inch	equ	[byte ptr 00009h]
_chTopLeftCorner2Inch	equ	[byte ptr 0000Ah]
_chTopRightCorner2Inch	equ	[byte ptr 0000Bh]
_chBottomLeftCorner2Inch	equ	[byte ptr 0000Ch]
_chBottomRightCorner2Inch	equ	[byte ptr 0000Dh]
_chTopSide2Inch	equ	[byte ptr 0000Eh]
_chBottomSide2Inch	equ	[byte ptr 0000Fh]
_chLeftSide2Inch	equ	[byte ptr 00010h]
_chRightSide2Inch	equ	[byte ptr 00011h]
_chUpArrowInch	equ	[byte ptr 00012h]
_chDownArrowInch	equ	[byte ptr 00013h]
_chLeftArrowInch	equ	[byte ptr 00014h]
_chRightArrowInch	equ	[byte ptr 00015h]
_chBulletInch	equ	[byte ptr 00016h]
_chMiddleDotInch	equ	[byte ptr 00017h]
_chScrollbarInch	equ	[byte ptr 00018h]
_chElevatorInch	equ	[byte ptr 00019h]
_chShadowInitInch	equ	[byte ptr 0001Ah]
_chCloseInch	equ	[byte ptr 0001Bh]
_chZoomInInch	equ	[byte ptr 0001Ch]
_chZoomOutInch	equ	[byte ptr 0001Dh]
_chUpDownArrowInch	equ	[byte ptr 0001Eh]
_chLeftRightArrowInch	equ	[byte ptr 0001Fh]
reservedInch	equ	[00020h]
cbInchMin	equ	00040h
ffontNormal	equ	00000h
ffontUnderline	equ	00001h
ffontDoubleUnderline	equ	00002h
ffontOrUnderline	equ	00003h
ffontStrikeThrough	equ	00004h
ffontBold	equ	00008h
ffontSubscript	equ	00010h
ffontSuperscript	equ	00020h
ffontMiniCap	equ	00030h
ffontItalic	equ	00040h
ffontOrCharacter	equ	00080h
ffontReservedBits	equ	00F00h
ffontExtraMask	equ	0F000h
ffontOrUnderlineSupport	equ	01000h
fvidsChAttr	equ	1

modeVids	equ	[byte ptr 00000h]
pageVids	equ	[byte ptr 00001h]
fvidsVids	equ	[word ptr 00002h]
cwVidDataVids	equ	[word ptr 00004h]
cwExtraVids	equ	[word ptr 00006h]
rgwExtraVids	equ	[word ptr 00008h]
cbVidsMin	equ	0000Ah

lpfnImodeGuessCurrentCsdInsj	equ	[dword ptr 00000h]
OFF_lpfnImodeGuessCurrentCsdInsj	equ	[word ptr 00000h]
SEG_lpfnImodeGuessCurrentCsdInsj	equ	[word ptr 00002h]
lpfnFQueryInstCsdInsj	equ	[dword ptr 00004h]
OFF_lpfnFQueryInstCsdInsj	equ	[word ptr 00004h]
SEG_lpfnFQueryInstCsdInsj	equ	[word ptr 00006h]
lpfnFInitCsdInsj	equ	[dword ptr 00008h]
OFF_lpfnFInitCsdInsj	equ	[word ptr 00008h]
SEG_lpfnFInitCsdInsj	equ	[word ptr 0000Ah]
lpfnTermCsdInsj	equ	[dword ptr 0000Ch]
OFF_lpfnTermCsdInsj	equ	[word ptr 0000Ch]
SEG_lpfnTermCsdInsj	equ	[word ptr 0000Eh]
lpfnMoveHwCursCsdInsj	equ	[dword ptr 00010h]
OFF_lpfnMoveHwCursCsdInsj	equ	[word ptr 00010h]
SEG_lpfnMoveHwCursCsdInsj	equ	[word ptr 00012h]
lpfnFQueryInftCsdInsj	equ	[dword ptr 00014h]
OFF_lpfnFQueryInftCsdInsj	equ	[word ptr 00014h]
SEG_lpfnFQueryInftCsdInsj	equ	[word ptr 00016h]
lpfnFGetColorPaletteCsdInsj	equ	[dword ptr 00018h]
OFF_lpfnFGetColorPaletteCsdInsj	equ	[word ptr 00018h]
SEG_lpfnFGetColorPaletteCsdInsj	equ	[word ptr 0001Ah]
lpfnSetColorPaletteCsdInsj	equ	[dword ptr 0001Ch]
OFF_lpfnSetColorPaletteCsdInsj	equ	[word ptr 0001Ch]
SEG_lpfnSetColorPaletteCsdInsj	equ	[word ptr 0001Eh]
lpfnPrepUpdateCsdInsj	equ	[dword ptr 00020h]
OFF_lpfnPrepUpdateCsdInsj	equ	[word ptr 00020h]
SEG_lpfnPrepUpdateCsdInsj	equ	[word ptr 00022h]
lpfnDoUpdateCsdInsj	equ	[dword ptr 00024h]
OFF_lpfnDoUpdateCsdInsj	equ	[word ptr 00024h]
SEG_lpfnDoUpdateCsdInsj	equ	[word ptr 00026h]
lpfnDoneUpdateCsdInsj	equ	[dword ptr 00028h]
OFF_lpfnDoneUpdateCsdInsj	equ	[word ptr 00028h]
SEG_lpfnDoneUpdateCsdInsj	equ	[word ptr 0002Ah]
lpfnSpecialUpdateCsdInsj	equ	[dword ptr 0002Ch]
OFF_lpfnSpecialUpdateCsdInsj	equ	[word ptr 0002Ch]
SEG_lpfnSpecialUpdateCsdInsj	equ	[word ptr 0002Eh]
lpfnCbSizeVidsCsdInsj	equ	[dword ptr 00030h]
OFF_lpfnCbSizeVidsCsdInsj	equ	[word ptr 00030h]
SEG_lpfnCbSizeVidsCsdInsj	equ	[word ptr 00032h]
lpfnFSaveVidsCsdInsj	equ	[dword ptr 00034h]
OFF_lpfnFSaveVidsCsdInsj	equ	[word ptr 00034h]
SEG_lpfnFSaveVidsCsdInsj	equ	[word ptr 00036h]
lpfnFRestoreVidsCsdInsj	equ	[dword ptr 00038h]
OFF_lpfnFRestoreVidsCsdInsj	equ	[word ptr 00038h]
SEG_lpfnFRestoreVidsCsdInsj	equ	[word ptr 0003Ah]
lpfnSaveVidDataCsdInsj	equ	[dword ptr 0003Ch]
OFF_lpfnSaveVidDataCsdInsj	equ	[word ptr 0003Ch]
SEG_lpfnSaveVidDataCsdInsj	equ	[word ptr 0003Eh]
lpfnRestoreVidDataCsdInsj	equ	[dword ptr 00040h]
OFF_lpfnRestoreVidDataCsdInsj	equ	[word ptr 00040h]
SEG_lpfnRestoreVidDataCsdInsj	equ	[word ptr 00042h]
lpfnEnableVidsMonitorCsdInsj	equ	[dword ptr 00044h]
OFF_lpfnEnableVidsMonitorCsdInsj	equ	[word ptr 00044h]
SEG_lpfnEnableVidsMonitorCsdInsj	equ	[word ptr 00046h]
lpfnBltArcCsdInsj	equ	[dword ptr 00048h]
OFF_lpfnBltArcCsdInsj	equ	[word ptr 00048h]
SEG_lpfnBltArcCsdInsj	equ	[word ptr 0004Ah]
lpfnGetCharMapCsdInsj	equ	[dword ptr 0004Ch]
OFF_lpfnGetCharMapCsdInsj	equ	[word ptr 0004Ch]
SEG_lpfnGetCharMapCsdInsj	equ	[word ptr 0004Eh]
cbInsjMin	equ	00050h
cpfnCsdMin	equ	20
KK_EXTENDED	equ	08000h
KK_CAPLOCK	equ	04000h
KK_NUMLOCK	equ	02000h
KK_SCRLOCK	equ	01000h
KK_ALT		equ	00800h
KK_CONTROL	equ	00400h
KK_SHIFT	equ	00200h
KK_VK		equ	001FFh
KK_SC		equ	000FFh

lpfnKeyboardMessageInkb	equ	[dword ptr 00000h]
OFF_lpfnKeyboardMessageInkb	equ	[word ptr 00000h]
SEG_lpfnKeyboardMessageInkb	equ	[word ptr 00002h]
lpfnFTestKeyboardEmptyInkb	equ	[dword ptr 00004h]
OFF_lpfnFTestKeyboardEmptyInkb	equ	[word ptr 00004h]
SEG_lpfnFTestKeyboardEmptyInkb	equ	[word ptr 00006h]
lpfnSpecialAbortInkb	equ	[dword ptr 00008h]
OFF_lpfnSpecialAbortInkb	equ	[word ptr 00008h]
SEG_lpfnSpecialAbortInkb	equ	[word ptr 0000Ah]
fAbortInkb	equ	[word ptr 0000Ch]
fPollKeyboardInkb	equ	[word ptr 0000Eh]
fKeyIsUpInkb	equ	[byte ptr 00010h]
fKeyWasUpInkb	equ	[byte ptr 00011h]
wRateKeyRepeatInkb	equ	[word ptr 00012h]
fNormalKeyboardInkb	equ	[word ptr 00014h]
fNonAltKeyHitInkb	equ	[byte ptr 00016h]
fDisableExtendedInkb	equ	[word ptr 00018h]
cbInkbMin	equ	0001Ah

pfnEnableKeyboardKbdInkj	equ	[dword ptr 00000h]
OFF_pfnEnableKeyboardKbdInkj	equ	[word ptr 00000h]
SEG_pfnEnableKeyboardKbdInkj	equ	[word ptr 00002h]
pfnPollKeyboardKbdInkj	equ	[dword ptr 00004h]
OFF_pfnPollKeyboardKbdInkj	equ	[word ptr 00004h]
SEG_pfnPollKeyboardKbdInkj	equ	[word ptr 00006h]
pfnFlushKeyRgchKbdInkj	equ	[dword ptr 00008h]
OFF_pfnFlushKeyRgchKbdInkj	equ	[word ptr 00008h]
SEG_pfnFlushKeyRgchKbdInkj	equ	[word ptr 0000Ah]
pfnMkGetShiftStatesKbdInkj	equ	[dword ptr 0000Ch]
OFF_pfnMkGetShiftStatesKbdInkj	equ	[word ptr 0000Ch]
SEG_pfnMkGetShiftStatesKbdInkj	equ	[word ptr 0000Eh]
pfnSetShiftKkKbdInkj	equ	[dword ptr 00010h]
OFF_pfnSetShiftKkKbdInkj	equ	[word ptr 00010h]
SEG_pfnSetShiftKkKbdInkj	equ	[word ptr 00012h]
pfnChAlternateKeytopKbdInkj	equ	[dword ptr 00014h]
OFF_pfnChAlternateKeytopKbdInkj	equ	[word ptr 00014h]
SEG_pfnChAlternateKeytopKbdInkj	equ	[word ptr 00016h]
cbInkjMin	equ	00018h
cpfnKbdMin	equ	6

lpfnDoSoundSydInyj	equ	[dword ptr 00000h]
OFF_lpfnDoSoundSydInyj	equ	[word ptr 00000h]
SEG_lpfnDoSoundSydInyj	equ	[word ptr 00002h]
lpfnLGetTimeSydInyj	equ	[dword ptr 00004h]
OFF_lpfnLGetTimeSydInyj	equ	[word ptr 00004h]
SEG_lpfnLGetTimeSydInyj	equ	[word ptr 00006h]
cbInyjMin	equ	00008h
cpfnSydMin	equ	2

colHotMcb	equ	[word ptr 00000h]
rowHotMcb	equ	[word ptr 00002h]
rgwAndMaskGfxMcb	equ	[00004h]
rgwXorMaskGfxMcb	equ	[00024h]
wAndMaskTextMcb	equ	[word ptr 00044h]
wXorMaskTextMcb	equ	[word ptr 00046h]
cbMcbMin	equ	00048h

leftXMcob	equ	[word ptr 00000h]
upperYMcob	equ	[word ptr 00002h]
rightXMcob	equ	[word ptr 00004h]
lowerYMcob	equ	[word ptr 00006h]
cbMcobMin	equ	00008h
MK_LBUTTON	equ	00001h
MK_RBUTTON	equ	00002h
MK_SHIFT	equ	00004h
MK_CONTROL	equ	00008h
MK_MBUTTON	equ	00010h
MK_NONCLIENT	equ	00060h
MK_NONCLIENT_X	equ	00020h
MK_NONCLIENT_Y	equ	00040h
MK_MENU		equ	08000h
rerrOk		equ	0
rerrBadFile	equ	2
rerrBadPath	equ	3
rerrNoMemory	equ	8
rerrBadFormat	equ	11
rerrBadRead	equ	30
rerrBadVersion	equ	90
rerrBadMemReq	equ	91

xGpt		equ	[word ptr 00000h]
yGpt		equ	[word ptr 00002h]
cbGptMin	equ	00004h

xLeftRect	equ	[word ptr 00000h]
yTopRect	equ	[word ptr 00002h]
xRightRect	equ	[word ptr 00004h]
yBottomRect	equ	[word ptr 00006h]
cbRectMin	equ	00008h

cbPolygon	equ	[word ptr 00000h]
rectBoundPolygon	equ	[00002h]
rggptPolygon	equ	[dword ptr 0000Ah]
LO_rggptPolygon	equ	[word ptr 0000Ah]
HI_rggptPolygon	equ	[word ptr 0000Ch]
cbPolygonMin	equ	0000Eh
cpenMax		equ	41
icoMax		equ	41

fingdIngd	equ	[word ptr 00000h]
reserved2Ingd	equ	[word ptr 00002h]
fingpSupportedIngd	equ	[word ptr 00004h]
dimHIngd	equ	[word ptr 00006h]
dimVIngd	equ	[word ptr 00008h]
dxScreenIngd	equ	[word ptr 0000Ah]
dyScreenIngd	equ	[word ptr 0000Ch]
dimPenHIngd	equ	[word ptr 0000Eh]
dimPenVIngd	equ	[word ptr 00010h]
cpenIngd	equ	[byte ptr 00012h]
icoAvailMacIngd	equ	[byte ptr 00013h]
icoPrefMacIngd	equ	[byte ptr 00014h]
ipaLineMacIngd	equ	[byte ptr 00015h]
ipaAreaMacIngd	equ	[byte ptr 00016h]
ccoplnIngd	equ	[byte ptr 00017h]
rgcoAvailIngd	equ	[00018h]
rgcoPrefIngd	equ	[0006Ah]
rgpaLineIngd	equ	[000BCh]
rgpaAreaIngd	equ	[000C1h]
szNameIngd	equ	[000D1h]
cbIngdMin	equ	000FAh
fingdRstrVctr	equ	00004h
fingdRasterFonts	equ	00040h
fingdMultiColor	equ	00100h
fingdVirtualPen	equ	00200h
fingdFilm	equ	00400h
fingdVarPenSize	equ	01000h
fingdNotAvailable	equ	08000h
fingpSetAreaPat	equ	00001h
fingpSetLinePat	equ	00002h
fingpSetLineWeight	equ	00004h
fingpSetColor	equ	00008h
fingpText	equ	00010h
fingpRectangle	equ	00020h
fingpArc	equ	00040h
fingpPolygon	equ	00080h
fingpBitBlt	equ	00100h

pfnFInitGraphicsIndj	equ	[dword ptr 00000h]
OFF_pfnFInitGraphicsIndj	equ	[word ptr 00000h]
SEG_pfnFInitGraphicsIndj	equ	[word ptr 00002h]
pfnTermGraphicsIndj	equ	[dword ptr 00004h]
OFF_pfnTermGraphicsIndj	equ	[word ptr 00004h]
SEG_pfnTermGraphicsIndj	equ	[word ptr 00006h]
pfnMoveIndj	equ	[dword ptr 00008h]
OFF_pfnMoveIndj	equ	[word ptr 00008h]
SEG_pfnMoveIndj	equ	[word ptr 0000Ah]
pfnDrawIndj	equ	[dword ptr 0000Ch]
OFF_pfnDrawIndj	equ	[word ptr 0000Ch]
SEG_pfnDrawIndj	equ	[word ptr 0000Eh]
pfnSetAreaPatIndj	equ	[dword ptr 00010h]
OFF_pfnSetAreaPatIndj	equ	[word ptr 00010h]
SEG_pfnSetAreaPatIndj	equ	[word ptr 00012h]
pfnSetLinePatIndj	equ	[dword ptr 00014h]
OFF_pfnSetLinePatIndj	equ	[word ptr 00014h]
SEG_pfnSetLinePatIndj	equ	[word ptr 00016h]
pfnSetLineWeightIndj	equ	[dword ptr 00018h]
OFF_pfnSetLineWeightIndj	equ	[word ptr 00018h]
SEG_pfnSetLineWeightIndj	equ	[word ptr 0001Ah]
pfnSetColorIndj	equ	[dword ptr 0001Ch]
OFF_pfnSetColorIndj	equ	[word ptr 0001Ch]
SEG_pfnSetColorIndj	equ	[word ptr 0001Eh]
pfnTextIndj	equ	[dword ptr 00020h]
OFF_pfnTextIndj	equ	[word ptr 00020h]
SEG_pfnTextIndj	equ	[word ptr 00022h]
pfnRectangleIndj	equ	[dword ptr 00024h]
OFF_pfnRectangleIndj	equ	[word ptr 00024h]
SEG_pfnRectangleIndj	equ	[word ptr 00026h]
pfnArcIndj	equ	[dword ptr 00028h]
OFF_pfnArcIndj	equ	[word ptr 00028h]
SEG_pfnArcIndj	equ	[word ptr 0002Ah]
pfnPolygonIndj	equ	[dword ptr 0002Ch]
OFF_pfnPolygonIndj	equ	[word ptr 0002Ch]
SEG_pfnPolygonIndj	equ	[word ptr 0002Eh]
pfnBitBltIndj	equ	[dword ptr 00030h]
OFF_pfnBitBltIndj	equ	[word ptr 00030h]
SEG_pfnBitBltIndj	equ	[word ptr 00032h]
cbIndjMin	equ	00034h
cpfnGxdMin	equ	13
cpfnGsdMin	equ	cpfnGxdMin
cpfnGpdMin	equ	cpfnGxdMin
IFNDEF NOPROCS 
externFP	FEnableMouse
externFP	EnableKeyboard
externFP	PollKeyboard
externFP	SetShiftKk
externFP	DisableExtendedKeyboard
externFP	GetCharMap
externFP	MessageBox
externFP	SetDialogCaption
externFP	HiliteDialogAccel
externFP	SetEditText
externFP	GetEditText
externFP	EditWndProc
externFP	SetAlarm
externFP	KillAlarm
externFP	UngetMessage
externFP	PeekMessage
externFP	GetFocus
externFP	SetFocus
externFP	FlushAbort
externFP	SetCapture
externFP	ReleaseCapture
externFP	DispatchMessage
externFP	PostMessage
externFP	SendMessage
externFP	InitMenu
externFP	FEnableMenuBar
externFP	EnableMenu
externFP	EnableMenuItem
externFP	CheckMenuItem
externFP	FMenuItemChecked
externFP	FindMenuItem
externFP	DrawMenubar
externFP	SetCursorBlock
externFP	ScrollBarWndProc
externFP	SetScrollPos
externFP	GetScrollPos
externFP	SetScrollRange
externFP	AddChild
externFP	RemoveChild
externFP	EnableWindow
externFP	GetClientRrc
externFP	SetWindowStyle
externFP	SetWindowSize
externFP	DrawWindow
externFP	DrawBorder
externFP	TextOut
externFP	CharOut
externFP	FillRrc
externFP	BltRrc
externFP	DrawBox
externFP	SaveRrc
externFP	RestoreRrc
externFP	EnableCursor
externFP	MoveCursor
externFP	MoveWindow
externFP	IntersectRect
externFP	UnionRect
externFP	IsRectEmpty
externFP	SetRect
externFP	PtInRect
externFP	CwSizeRrc
externFP	ShadowArc
externFP	ListBoxWndProc
externFP	DoSound
externFP	ClockTicks
externFP	FValidDrive
externFP	SetIsaColor
externFP	GetIsaColor
externFP	SetIsaRgca
externFP	TmcDoDlg
externFP	HcabAlloc
externFP	FreeCab
externFP	FreeCabData
externFP	SzToCab
externFP	SzFromCab
externFP	EnableTmc
externFP	FEnabledTmc
externFP	SetTmcVal
externFP	GetTmcVal
externFP	SetTmcSel
externFP	GetTmcText
externFP	SetTmcText
externFP	SetFocusTmc
externFP	RedisplayListBox
externFP	RedisplayTmc
externFP	SetDefaultTmc
externFP	InitCab
externFP	ReinitCab
externFP	PwndOfListbox
ENDIF ;!NOPROCS 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -