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

📄 valmode.inc

📁 用于查询PC机上的USB端口是否有设备挂接上
💻 INC
字号:
;/*
;----------------------------------------------------------------------------
; VALMODE.INC
; Copyright (c) 1993-94 Microsoft Corporation
;
; Definitions for ValidateMode.
;
; UINT WINAPI ValidateMode(DISPVALMODE FAR *);
; NOTE: Display drivers must use the name "ValidateMode" in the .def file
; since windows dyna-links to this function by name, not by ordinal. Ordinal
; 700 is the recommended value for this function.
;----------------------------------------------------------------------------

;----------------------------------------------------------------------------
; E Q U A T E S
;
; the possible return values from DisplayValidateMode
;----------------------------------------------------------------------------
VALMODE_YES		equ	0	;definitely valid
VALMODE_NO_WRONGDRV	equ	1	;driver doesn't work on adapter
VALMODE_NO_NOMEM	equ	2	;not enough memory for settings
VALMODE_NO_NODAC	equ	3	;DAC can't handle colors
VALMODE_NO_UNKNOWN	equ	4	;unknown problem
comment ~
*/
#define VALMODE_YES		0
#define VALMODE_NO_WRONGDRV	1
#define VALMODE_NO_NOMEM	2
#define VALMODE_NO_NODAC	3
#define VALMODE_NO_UNKNOWN	4
/*
end comment ~
;----------------------------------------------------------------------------
; S T R U C T U R E S
;----------------------------------------------------------------------------

;----------------------------------------------------------------------------
; DISPVALMODE - basic structure for mode information
;----------------------------------------------------------------------------
DISPVALMODE	    struc						;*/ typedef struct {	/*
  dvmSize	    dw	?		; size of this structure	;*/ UINT dvmSize;	/*
  dvmBpp	    dw	?		; color resolution		;*/ UINT dvmBpp;	/*
  dvmXRes	    dw	?		; X resolution			;*/ int dvmXRes;	/*
  dvmYRes	    dw	?		; Y resolution			;*/ int dvmYRes;	/*
DISPVALMODE	    ends		                                ;*/ } DISPVALMODE;  	/*
;*/

⌨️ 快捷键说明

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