Files
SimpleRemoter/client/LoginServer.h
yuanyuanxiang 1f03c14fee 修复操作系统上报不准确的问题
主控端和受控端同时修改LOGIN_INFOR结构,修复了受控端上报的操作系统信息不准确的问题。
2019-03-29 10:40:08 +08:00

22 lines
538 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "IOCPClient.h"
#include <Vfw.h>
#pragma comment(lib,"Vfw32.lib")
typedef struct _LOGIN_INFOR
{
BYTE bToken; // 取1登陆信息
char OsVerInfoEx[sizeof(OSVERSIONINFOEX)];// 版本信息
DWORD dwCPUMHz; // CPU主频
IN_ADDR ClientAddr; // 存储32位的IPv4的地址数据结构
char szPCName[MAX_PATH]; // 主机名
BOOL bWebCamIsExist; // 是否有摄像头
DWORD dwSpeed; // 网速
}LOGIN_INFOR,*PLOGIN_INFOR;
int SendLoginInfo(IOCPClient* ClientObject,DWORD dwSpeed);
DWORD CPUClockMHz();
BOOL WebCamIsExist();