cerdisp.h
来自「老外的一个开源项目」· C头文件 代码 · 共 85 行
H
85 行
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
//------------------------------------------------------------------------------
//
// Bluetooth client API declarations
//
//
// Module Name:
//
// cerdisp.h
//
// Abstract:
//
// CE Remote Display common header file
//
//
//------------------------------------------------------------------------------
#ifndef _CERDISP_H_
#define _CERDISP_H_
#if defined (__cplusplus)
extern "C" {
#endif
#define MAGIC_VERSION 0x6a6d6d30 // Version number, increment low byte for version change
#define CERDISP_VER_MAJ 3
#define CERDISP_VER_MIN 0
#define WM_DRAW_CURSOR 0x0401
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
} CERDISPINFO, *PCERDISPINFO;
typedef enum _CEROBJTYPE {
CEROBJ_RECT = 0,
CEROBJ_PALETTE,
CEROBJ_ROWUPDATE,
CEROBJ_CONFIG, // bidirectional command
CEROBJ_HEARTBEAT
} 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;
typedef struct { // Object Type = CEROBJ_CONFIG
DWORD dwRefreshInterval; // Refresh interval(ms)
DWORD dwUpdatePolicy; // 0==>line by line, 1==>whone screen
DWORD dwCheckPolicy; // 0==>checksum, 1==>crc
} CERCONFIG, *PCERCONFIG;
#if defined (__cplusplus)
}; // __cplusplus
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?