基于gh0st的远程控制器
实现了终端管理、进程管理、窗口管理、桌面管理、文件管理、语音管理、视频管理、服务管理、注册表管理等功能。
This commit is contained in:
40
client/CursorInfor.cpp
Normal file
40
client/CursorInfor.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
// CursorInfor.cpp: implementation of the CCursorInfor class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "CursorInfor.h"
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
CCursorInfor::CCursorInfor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CCursorInfor::~CCursorInfor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int CCursorInfor::GetCurrentCursorIndex()
|
||||
{
|
||||
CURSORINFO ci;
|
||||
ci.cbSize = sizeof(CURSORINFO);
|
||||
if (!GetCursorInfo(&ci) || ci.flags != CURSOR_SHOWING)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int iIndex = 0;
|
||||
for (iIndex = 0; iIndex < MAX_CURSOR_TYPE; iIndex++)
|
||||
{
|
||||
break;
|
||||
}
|
||||
DestroyCursor(ci.hCursor);
|
||||
|
||||
return iIndex == MAX_CURSOR_TYPE ? -1 : iIndex;
|
||||
}
|
||||
Reference in New Issue
Block a user