跳到正文

个人记录

屏蔽

zhouhaoGG约 5 分钟
原文
文章信息与版本

文章信息

发布
2024年11月23日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 5 分钟

版本

  1. v1当前

屏蔽RG:
(请使用GBK编码保存)

C++
#include<string>
#include<windows.h>
using namespace std;
int main(){
	/*
	by:zhouhaoGG
	2024/11/23 -> 2026/2/8
	按↓←→键隐藏/显示
	*/
	const int n=2;
	const string name[n]={
		"CutRecordSideWnd - 云桌面教学管理软件",
		"DisplayerWnd - 云桌面教学管理软件"
	};
	bool hide=false,past_v=false,bd_v=false;
	HWND hWnd[n];
    FIND:
	for(int i=0;i<n;i++){
		hWnd[i]=FindWindow(NULL,name[i].c_str());
		if(hWnd[i]==NULL){
            Sleep(1000);
            goto FIND;
        }
	}
	while(true){
		for(int i=0;i<n;i++){
			SetWindowPos(hWnd[i],HWND_BOTTOM,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
			ShowWindow(hWnd[i],hide?SW_HIDE:SW_SHOW);
		}
		bd_v=(GetAsyncKeyState(VK_DOWN)&GetAsyncKeyState(VK_LEFT)&GetAsyncKeyState(VK_RIGHT))&0x8000;
		if(past_v==0&&bd_v==1) hide=!hide;
		past_v=bd_v;
		Sleep(10);
	}
	return 0;
}

解除键盘:插拔键盘USB

old:

C++
#include<string>
#include<windows.h>
using namespace std;
int main(){
	/*
	by:zhouhaoGG
	2024/11/23
	按↓←→键隐藏/显示
	*/
	const int n=2;
	const string name[n]={
		"CutRecordSideWnd - 云桌面教学管理软件",
		"DisplayerWnd - 云桌面教学管理软件"
	};
	bool hide=false,past_v=false,bd_v=false;
	HWND hWnd[n];
	for(int i=0;i<n;i++){
		hWnd[i]=FindWindow(NULL,name[i].c_str());
		if(hWnd[i]==NULL) return i+1;
	}
	while(true){
		for(int i=0;i<n;i++){
			SetWindowPos(hWnd[i],HWND_BOTTOM,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
			ShowWindow(hWnd[i],hide?SW_HIDE:SW_SHOW);
		}
		bd_v=(GetAsyncKeyState(VK_DOWN)&GetAsyncKeyState(VK_LEFT)&GetAsyncKeyState(VK_RIGHT))&0x8000;
		if(past_v==0&&bd_v==1) hide=!hide;
		past_v=bd_v;
		Sleep(10);
	}
	return 0;
}

育林:“屏幕广播系统”
极域

C++
#include<windows.h>
using namespace std;
int main(){
	HWND h;
	while(true){
		while((h=FindWindow(NULL,"屏幕广播"))){
			system("taskkill /IM studentMain.exe /F");
			Sleep(5);
		}
		Sleep(30);
	}
	return 0;
}

解除极域U盘控制
cmd :

cmd
sc stop TDFileFilter
sc delete TDFileFilter

获取窗口名:

C++
#include<windows.h>
#include<iostream>
#include<iomanip>
using namespace std;
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam){
    const int length = 256;
    char windowText[length];
    if (GetWindowText(hwnd, windowText, length))
        cout<<"Handle: "<<left<<setw(10)<<hwnd<<"- "<<windowText<<'\n';
    return TRUE;
}
int main(){
    EnumWindows(EnumWindowsProc, 0);
    return 0;
}

一键破极域

cmd
taskkill /IM studentMain.exe /F
sc stop TDFileFilter
sc delete TDFileFilter

The END

原文