Skip to content

Commit eb612a8

Browse files
authored
Add files via upload
1 parent 9204a53 commit eb612a8

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

dwm-bs/dwm-bs.cbp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<FileVersion major="1" minor="6" />
44
<Project>
55
<Option title="dwm-bs" />
6+
<Option platforms="Windows;" />
67
<Option pch_mode="2" />
78
<Option compiler="gcc" />
89
<Build>
910
<Target title="Release">
10-
<Option platforms="Windows;" />
1111
<Option output="bin/Release/dwm-bs" prefix_auto="1" extension_auto="1" />
1212
<Option object_output="obj/Release/" />
1313
<Option type="1" />

dwm-bs/dwm-bs.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ BOOL tPol, tPeek, isEnabled;
1313
DWORD GetPID(const char* processName) {
1414
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
1515
if (snapshot == INVALID_HANDLE_VALUE) {
16-
printf("Error al crear un snapshot de procesos");
16+
printf("Error creating a process snapshot.\n");
1717
return 0;
1818
}
1919

2020
PROCESSENTRY32 entry;
2121
entry.dwSize = sizeof(PROCESSENTRY32);
2222
if (!Process32First(snapshot, &entry)) {
2323
CloseHandle(snapshot);
24-
printf("Error al obtener la primera entrada de proceso");
24+
printf("Error getting first process entry.\n");
2525
return 0;
2626
}
2727

@@ -39,7 +39,7 @@ DWORD GetPID(const char* processName) {
3939

4040
const char* GetExcludeList()
4141
{
42-
static char pBuffer[64]; // Usamos static para que la variable persista fuera del alcance de la función
42+
static char pBuffer[64]; // Usamos static para que la variable persista fuera del alcance de la función
4343
DWORD pSize = sizeof(pBuffer);
4444

4545
// Leer la lista de procesos excluidos
@@ -95,7 +95,7 @@ void _ATTRIBS_ON(HWND hwnd)
9595
BOOL IsExcludeHWND(HWND hWnd_ex)
9696
{
9797

98-
// Verificar si la ventana tiene la renderización habilitada
98+
// Verificar si la ventana tiene la renderización habilitada
9999
DwmGetWindowAttribute(hWnd_ex, DWMWA_NCRENDERING_ENABLED, &isEnabled, sizeof(isEnabled));
100100
if(isEnabled == FALSE) {
101101
return TRUE;
@@ -106,9 +106,9 @@ BOOL IsExcludeHWND(HWND hWnd_ex)
106106

107107
const char* pBuffer = GetExcludeList();
108108

109-
// Verificar si el proceso de la ventana está en la lista de exclusión
109+
// Verificar si el proceso de la ventana está en la lista de exclusión
110110
while (*pBuffer) {
111-
DWORD pid_ex = GetPID(pBuffer); // Aquí deberías llamar a tu función GetPID
111+
DWORD pid_ex = GetPID(pBuffer); // Aquí deberías llamar a tu función GetPID
112112
if (pid == pid_ex) {
113113
return TRUE;
114114
}
@@ -142,7 +142,7 @@ void CALLBACK WinEventProc(HWINEVENTHOOK hWinEventHook, DWORD event, HWND hwnd,
142142
{
143143
// deshabilitar otros atributos
144144
_ATTRIBS_OFF(hwnd);
145-
145+
146146
// Comprobar si la ventana actual es de un proceso excluido
147147
if (IsExcludeHWND(hwnd))
148148
{

dwm-bs/dwm-bs.layout

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
<CodeBlocks_layout_file>
33
<FileVersion major="1" minor="0" />
44
<ActiveTarget name="Release" />
5-
<File name="dwm-bs.rc" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
5+
<File name="dwm-bs.cpp" open="0" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
66
<Cursor>
7-
<Cursor1 position="0" topLine="0" />
7+
<Cursor1 position="1187" topLine="9" />
88
</Cursor>
99
</File>
10-
<File name="dwm-bs.cpp" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
10+
<File name="dwm-bs.rc" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
1111
<Cursor>
12-
<Cursor1 position="719" topLine="17" />
12+
<Cursor1 position="275" topLine="0" />
1313
</Cursor>
1414
</File>
15-
<File name="dwm-bs.h" open="1" top="1" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
15+
<File name="dwm-bs.h" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
1616
<Cursor>
17-
<Cursor1 position="3033" topLine="75" />
17+
<Cursor1 position="642" topLine="131" />
1818
</Cursor>
1919
</File>
2020
</CodeBlocks_layout_file>

dwm-bs/dwm-bs.rc

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ BEGIN
99
VALUE "CompanyName", "LuSlower Software"
1010
VALUE "FileDescription", "dwm-bs"
1111
VALUE "FileVersion", "0.0.0.0"
12-
VALUE "InternalName", "dwm-bs"
1312
VALUE "LegalCopyright", "Copyright � LuSlower"
14-
VALUE "OriginalFilename", "dwm-bs.exe"
15-
VALUE "ProductName", "dwm-bs"
1613
VALUE "ProductVersion", "0.0.0.0"
14+
VALUE "ProductName", "dwm-bs"
1715
}
1816
}
1917
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)