Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAnd1998 authored Jan 23, 2022
1 parent 8e925f3 commit d358bdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Taskbar11/Taskbar11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <iostream>
#include <thread>
#include <dwmapi.h>
#include <dwmapi.h>

//Notifyicon
#include <shellapi.h>
Expand Down Expand Up @@ -264,7 +264,7 @@ void remove_startup() {
LONG createStatus = RegOpenKey(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", &hkey);
LONG status = RegDeleteValue(hkey, L"TaskbarXI");
RegCloseKey(hkey);
exit(0);
exiting();
}

HRESULT UpdateWindows11RoundCorners(HWND hWnd)
Expand Down Expand Up @@ -555,6 +555,7 @@ int WINAPI WinMain(_In_opt_ HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
//freopen_s(&fpstdin, "CONIN$", "r", stdin);
freopen_s(&fpstdout, "CONOUT$", "w", stdout);
freopen_s(&fpstderr, "CONOUT$", "w", stderr);
cur_cmd.append(" -console");
}
if (wcscmp(szArgList[i], L"-help") == 0) {
AllocConsole();
Expand Down Expand Up @@ -603,6 +604,7 @@ int WINAPI WinMain(_In_opt_ HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
std::wcout << "EXAMPLE: TaskbarXI.exe -ignoremax -expandspeed 100 -square ";

FreeConsole();

}
}

Expand Down Expand Up @@ -733,6 +735,7 @@ int WINAPI WinMain(_In_opt_ HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR

if (removestartup == 1) {
remove_startup();
exiting();
}

if (blur == 1) {
Expand Down Expand Up @@ -1406,4 +1409,4 @@ BOOL CALLBACK EnumCallbackInstances(HWND hWND, LPARAM lParam) {
length = NULL;

return true;
}
}
2 changes: 0 additions & 2 deletions Taskbar11/Taskbar11.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<TargetName>TaskbarXI</TargetName>
<IntDir>$(Configuration)\</IntDir>
<OutDir>$(Configuration)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
Expand Down

0 comments on commit d358bdb

Please sign in to comment.