mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-28 23:51:07 +03:00
virtual display: compile example ok, not debug yet
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
50
libs/virtual_display/src/win10/Public.h
Normal file
50
libs/virtual_display/src/win10/Public.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
|
||||
#include <minwindef.h>
|
||||
#include <winioctl.h>
|
||||
#include <guiddef.h>
|
||||
|
||||
#define IOCTL_CHANGER_IDD_PLUG_IN CTL_CODE(IOCTL_CHANGER_BASE, \
|
||||
0x1001, \
|
||||
METHOD_BUFFERED, \
|
||||
FILE_READ_ACCESS | FILE_WRITE_ACCESS)
|
||||
#define IOCTL_CHANGER_IDD_PLUG_OUT CTL_CODE(IOCTL_CHANGER_BASE, \
|
||||
0x1002, \
|
||||
METHOD_BUFFERED, \
|
||||
FILE_READ_ACCESS | FILE_WRITE_ACCESS)
|
||||
#define IOCTL_CHANGER_IDD_UPDATE_MONITOR_MODE CTL_CODE(IOCTL_CHANGER_BASE, \
|
||||
0x1003, \
|
||||
METHOD_BUFFERED, \
|
||||
FILE_READ_ACCESS | FILE_WRITE_ACCESS)
|
||||
|
||||
|
||||
#define STATUS_ERROR_ADAPTER_NOT_INIT (3 << 30) + 11
|
||||
//#define STATUS_ERROR_IO_CTL_GET_INPUT (3 << 30) + 21
|
||||
//#define STATUS_ERROR_IO_CTL_GET_OUTPUT (3 << 30) + 22
|
||||
#define STATUS_ERROR_MONITOR_EXISTS (3 << 30) + 51
|
||||
#define STATUS_ERROR_MONITOR_NOT_EXISTS (3 << 30) + 52
|
||||
#define STATUS_ERROR_MONITOR_INVALID_PARAM (3 << 30) + 53
|
||||
#define STATUS_ERROR_MONITOR_OOM (3 << 30) + 54
|
||||
|
||||
typedef struct _CtlPlugIn {
|
||||
UINT ConnectorIndex;
|
||||
GUID ContainerId;
|
||||
} CtlPlugIn, *PCtlPlugIn;
|
||||
|
||||
typedef struct _CtlPlugOut {
|
||||
UINT ConnectorIndex;
|
||||
} CtlPlugOut, *PCtlPlugOut;
|
||||
|
||||
typedef struct _CtlMonitorModes {
|
||||
UINT ConnectorIndex;
|
||||
UINT ModeCount;
|
||||
struct {
|
||||
DWORD Width;
|
||||
DWORD Height;
|
||||
DWORD Sync;
|
||||
} Modes[1];
|
||||
} CtlMonitorModes, *PCtlMonitorModes;
|
||||
|
||||
|
||||
#define SYMBOLIC_LINK_NAME L"\\Device\\RustDeskIddDriver"
|
||||
|
||||
Reference in New Issue
Block a user