virtdisp.h

来自「老外的一个开源项目」· C头文件 代码 · 共 74 行

H
74
字号
// Copyright (c) David Vescovi.  All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//------------------------------------------------------------------------------
// 
// 
// Module Name:
// 
//      virtdisp.h
// 
// Abstract:
// 
//      CE Remote Display common header file
// 
// 
//------------------------------------------------------------------------------

#ifndef _VIRTDISP_H_
#define _VIRTDISP_H_
#if defined (__cplusplus)
extern "C" {
#endif


#define MAGIC_VERSION	0x6a6d6d05	// Version number, increment low byte for version change

#define VIRTDISP_VER_MAJ	3
#define VIRTDISP_VER_MIN	0

typedef struct {
	DWORD	dwSize;			// The size of the struct
	DWORD	dwMagic;		// The magic number
	DWORD	cXScreen;		// Number of X pixels
	DWORD	cYScreen;		// Number of Y pixels
	DWORD	cScreenDepth;	// Number of Pixels deep
	DWORD	dwMajorVersion;	// Major Version of the OS
	DWORD	dwMinorVersion;	// Minor Version of the OS
	char	szPlatformType[128];	// SystemParametersInfo(SPI_GET_PLATFORMTYPE)
	char	szOEMInfo[128];			// SystemParametersInfo(SPI_GET_OEMINFO)
	char	szDeviceName[16+1];	// HostName
} VIRTDISPINFO, *PVERTDISPINFO;

typedef enum _CEROBJTYPE {
	CEROBJ_RECT = 0,
	CEROBJ_PALETTE,
	CEROBJ_ROWUPDATE
} CEROBJTYPE;

typedef struct {
	DWORD	dwObjType;	// Object Type = CEROBJ_RECT
	DWORD	dwSize;		// Size of data to follow (in words)
	RECT	rect;		// Coordinates of rect data
} CERRECTUPDATE, *PCERRECTUPDATE;

typedef struct {
	DWORD	dwObjType;		// Object Type = CEROBJ_PALETTE
	DWORD	dwSize;			// Size of data to follow
} CERPALUPDATE, *PCERPALUPDATE;


#if defined (__cplusplus)
};			// __cplusplus
#endif
#endif

⌨️ 快捷键说明

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