Convert to CMake

This commit is contained in:
lemon-sh 2022-01-17 19:47:23 +01:00
parent 7e459e0b64
commit 83f0d681c1
16 changed files with 73 additions and 699 deletions

365
.gitignore vendored
View File

@ -1,363 +1,2 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
/*build*
/.idea

6
CMakeLists.txt Normal file
View File

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.12)
project(windimgup)
aux_source_directory(src WINDIMGUP_SOURCE)
add_executable(windimgup ${WINDIMGUP_SOURCE} windimgup.rc)
target_link_libraries(windimgup gdiplus wininet comctl32)

View File

@ -1,23 +0,0 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by windimgup.rc
//
#define IDC_MYICON 2
#define IDD_WINDIMGUP_DIALOG 102
#define IDS_APP_TITLE 103
#define IDM_ABOUT 104
#define IDI_WINDIMGUP 107
#define IDR_MAINFRAME 128
#define IDC_STATIC -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
#endif
#endif

View File

@ -10,8 +10,8 @@ int getEncoderClsid(const WCHAR* format, CLSID* pClsid) {
UINT size = 0;
Gdiplus::GetImageEncodersSize(&num, &size);
if (size == 0) return -1;
Gdiplus::ImageCodecInfo* pImageCodecInfo = (Gdiplus::ImageCodecInfo*)(malloc(size));
if (pImageCodecInfo == NULL) return -1;
auto* pImageCodecInfo = (Gdiplus::ImageCodecInfo*)(malloc(size));
if (pImageCodecInfo == nullptr) return -1;
Gdiplus::GetImageEncoders(num, size, pImageCodecInfo);
for (UINT j = 0; j < num; ++j) {
if (wcscmp(pImageCodecInfo[j].MimeType, format) == 0) {
@ -35,30 +35,30 @@ int getPngFromClipboard(HGLOBAL* hgl) {
ULONG_PTR gdiplusToken;
CLSID encoderClsid;
HGLOBAL imgMem;
IStream* stream = 0;
IStream* stream = nullptr;
void* bmpBits;
LPBITMAPINFO bmpInfo = 0;
LPBITMAPINFO bmpInfo = nullptr;
if (Gdiplus::GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL) != Gdiplus::Status::Ok) { status = 1; goto rip; }
if (Gdiplus::GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, nullptr) != Gdiplus::Status::Ok) { status = 1; goto rip; }
if (getEncoderClsid(L"image/png", &encoderClsid)) { status = 2; goto rip; }
if (!OpenClipboard(NULL)) { status = 3; goto rip; }
if (!OpenClipboard(nullptr)) { status = 3; goto rip; }
imgMem = GetClipboardData(CF_DIB);
if (imgMem == NULL) { status = 4; goto rip; }
if (imgMem == nullptr) { status = 4; goto rip; }
bmpInfo = (LPBITMAPINFO)GlobalLock(imgMem);
bmpBits = (void*)(bmpInfo + 1);
if (FAILED(CreateStreamOnHGlobal(NULL, FALSE, &stream))) { status = 5; goto rip; }
if (FAILED(CreateStreamOnHGlobal(nullptr, FALSE, &stream))) { status = 5; goto rip; }
{
Gdiplus::Bitmap bmp(bmpInfo, bmpBits);
bmp.Save(stream, &encoderClsid);
bmp.Save(stream, &encoderClsid, nullptr);
}
if (FAILED(GetHGlobalFromStream(stream, hgl))) { status = 6; }
rip:
if (bmpInfo != NULL) GlobalUnlock(bmpInfo);
if (stream != NULL) stream->Release();
if (bmpInfo != nullptr) GlobalUnlock(bmpInfo);
if (stream != nullptr) stream->Release();
CloseClipboard();
Gdiplus::GdiplusShutdown(gdiplusToken);
return status;

View File

@ -2,7 +2,9 @@
#include <WinInet.h>
#include <string>
const char* acceptTypes[] = { "application/json", NULL };
#define lemin(a, b) ((a) < (b) ? (a) : (b))
const char* acceptTypes[] = { "application/json", nullptr };
const char fdHeadBegin[] = "------974767299852498929531610575\r\nContent-Disposition: form-data; name=\"file\"; filename=\"";
const char fdHeadEnd[] = "\"\r\nContent-Type: application/octet-stream\r\n\r\n";
const char fdEnd[] = "\r\n------974767299852498929531610575--\r\n";
@ -41,7 +43,7 @@ bool writeInternetExact(HINTERNET req, const void* data, DWORD dataLength)
*/
DWORD uploadWebhook(const char* webhook, const char* data, DWORD dataLength, const char* filename, char** url, void (*cbProgress)(DWORD sent, DWORD full)) {
if (!*filename) filename = "wdmupload.png";
HINTERNET wininet = 0, conn = 0, req = 0;
HINTERNET wininet, conn = nullptr, req = nullptr;
INTERNET_BUFFERSA bufs{};
DWORD filenameLen, bytesWritten = 0, lastWrite = 0;
size_t urlPos, urlEndPos, urlLength;
@ -49,12 +51,12 @@ DWORD uploadWebhook(const char* webhook, const char* data, DWORD dataLength, con
std::string recvBuf;
recvBuf.reserve(1024);
wininet = InternetOpenA("WinDimgup/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, NULL);
if (wininet == 0) goto rip;
conn = InternetConnectA(wininet, "discord.com", INTERNET_DEFAULT_HTTPS_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, NULL, 0);
if (conn == 0) goto rip;
req = HttpOpenRequestA(conn, "POST", webhook, "HTTP/1.1", NULL, acceptTypes, INTERNET_FLAG_SECURE, 0);
if (req == 0) goto rip;
wininet = InternetOpenA("WinDimgup/1.0", INTERNET_OPEN_TYPE_PRECONFIG, nullptr, nullptr, NULL);
if (wininet == nullptr) goto rip;
conn = InternetConnectA(wininet, "discord.com", INTERNET_DEFAULT_HTTPS_PORT, nullptr, nullptr, INTERNET_SERVICE_HTTP, NULL, 0);
if (conn == nullptr) goto rip;
req = HttpOpenRequestA(conn, "POST", webhook, "HTTP/1.1", nullptr, acceptTypes, INTERNET_FLAG_SECURE, 0);
if (req == nullptr) goto rip;
if (!HttpAddRequestHeadersA(req, "Content-Type: multipart/form-data; boundary=----974767299852498929531610575", 75, HTTP_ADDREQ_FLAG_REPLACE | HTTP_ADDREQ_FLAG_ADD)) goto rip;
bufs.dwStructSize = sizeof(INTERNET_BUFFERS);
@ -62,7 +64,7 @@ DWORD uploadWebhook(const char* webhook, const char* data, DWORD dataLength, con
bufs.dwBufferTotal = (sizeof(fdHeadBegin) + sizeof(fdHeadEnd) + sizeof(fdEnd) - 3) + filenameLen + dataLength;
if (!HttpSendRequestExA(req, &bufs, NULL, 0, 0)) goto rip;
if (!HttpSendRequestExA(req, &bufs, nullptr, 0, 0)) goto rip;
// writing head
if (!writeInternetExact(req, fdHeadBegin, sizeof(fdHeadBegin) - 1)) goto rip;
@ -71,14 +73,14 @@ DWORD uploadWebhook(const char* webhook, const char* data, DWORD dataLength, con
// writing data
while (bytesWritten < dataLength) {
if (!InternetWriteFile(req, data + bytesWritten, min(dataLength - bytesWritten, SHRT_MAX), &lastWrite)) goto rip;
if (!InternetWriteFile(req, data + bytesWritten, lemin(dataLength - bytesWritten, SHRT_MAX), &lastWrite)) goto rip;
bytesWritten += lastWrite;
cbProgress(bytesWritten, dataLength);
}
// writing end
if (!writeInternetExact(req, fdEnd, sizeof(fdEnd) - 1)) goto rip;
if (!HttpEndRequestA(req, NULL, 0, 0)) goto rip;
if (!HttpEndRequestA(req, nullptr, 0, 0)) goto rip;
while (true)
{
@ -88,7 +90,7 @@ DWORD uploadWebhook(const char* webhook, const char* data, DWORD dataLength, con
if (bytesRead == 0) break;
recvBuf.append(tmp, bytesRead);
}
urlPos = recvBuf.find("\"url\": \"");
urlPos = recvBuf.find(R"("url": ")");
if (urlPos == std::string::npos) {
SetLastError(ERROR_INVALID_DATA);
*url = _strdup(recvBuf.c_str());
@ -111,8 +113,8 @@ DWORD uploadWebhook(const char* webhook, const char* data, DWORD dataLength, con
SetLastError(0);
rip:
DWORD status = GetLastError();
if (req != 0) InternetCloseHandle(req);
if (conn != 0) InternetCloseHandle(conn);
if (wininet != 0) InternetCloseHandle(wininet);
if (req != nullptr) InternetCloseHandle(req);
if (conn != nullptr) InternetCloseHandle(conn);
if (wininet != nullptr) InternetCloseHandle(wininet);
return status;
}

View File

@ -26,7 +26,7 @@ int initSettings() {
* Returns 0 on success and GetLastError() value on failure.
*/
DWORD storeSettings(BYTE opts, const char* webhook) {
DWORD bytesWritten = 0, status = 0;
DWORD bytesWritten = 0, status;
size_t webhookLength = strlen(webhook);
DWORD bufSize = (DWORD)webhookLength + 2;
char* buf = (char*)malloc(bufSize);
@ -59,8 +59,7 @@ DWORD loadSettings(char** buf) {
if (file == INVALID_HANDLE_VALUE) goto rip;
if (!GetFileSizeEx(file, &filesize)) goto rip;
*buf = (char*)malloc(filesize.QuadPart);
if (!buf) { SetLastError(ERROR_NOT_ENOUGH_MEMORY); goto rip; }
if (!ReadFile(file, *buf, (DWORD)filesize.QuadPart, &bytesRead, NULL)) goto rip;
if (!ReadFile(file, *buf, (DWORD)filesize.QuadPart, &bytesRead, NULL)) goto rip;
if (bytesRead != filesize.QuadPart) { SetLastError(ERROR_READ_FAULT); goto rip; }
(*buf)[filesize.QuadPart - 1] = 0;
SetLastError(0);

View File

@ -1,10 +1,7 @@
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include <windows.h>
#include <Commctrl.h>
#include <stdio.h>
#include "resource.h"
#include "settings.h"
#include "discord_webhook.h"
#include "clipboard.h"
@ -20,8 +17,8 @@ HBRUSH bgBrush, brightBrush;
HANDLE uploadThread;
// window size
#define WIN_WIDTH 300
#define WIN_HEIGHT 225
#define WIN_WIDTH 290
#define WIN_HEIGHT 215
// colors
#define DCOLOR_BG_DARK RGB(40,40,40)
@ -66,9 +63,9 @@ HWND createCheckbox(HWND parent, UINT_PTR controlId, int posX, int posY, int wid
}
HWND createProgress(HWND parent, UINT_PTR controlId, int max, int posX, int posY, int width, int height) {
HWND progressBar = CreateWindowEx(0, PROGRESS_CLASS, NULL, WS_CHILD | WS_VISIBLE | PBS_SMOOTH, posX, posY, width, height, parent, (HMENU)controlId, hInst, NULL);
SendMessageA(progressBar, PBM_SETRANGE, 0, (LPARAM)MAKELONG(0, max));
return progressBar;
HWND progressBarHwnd = CreateWindowEx(0, PROGRESS_CLASS, NULL, WS_CHILD | WS_VISIBLE | PBS_SMOOTH, posX, posY, width, height, parent, (HMENU)controlId, hInst, NULL);
SendMessageA(progressBarHwnd, PBM_SETRANGE, 0, (LPARAM)MAKELONG(0, max));
return progressBarHwnd;
}
// ------------------------------------------------------------------------- //
@ -130,15 +127,14 @@ void copyLinkToClipboard(HWND hwnd) {
int urlLen = GetWindowTextLengthA(outputEdit)+1;
HGLOBAL urlMem = 0;
DWORD status;
HANDLE clipHandle;
if (urlLen == 0) {
if (urlLen == 0) {
MessageBoxA(NULL, "There's nothing to copy.", "Error", MB_ICONINFORMATION);
goto rip;
}
if (!(urlMem = GlobalAlloc(GMEM_FIXED, urlLen))) goto rip;
if (!GetWindowTextA(outputEdit, urlMem, urlLen)) goto rip;
if (!EmptyClipboard()) goto rip;
if (!(clipHandle = SetClipboardData(CF_TEXT, urlMem))) goto rip;
if (!(SetClipboardData(CF_TEXT, urlMem))) goto rip;
urlMem = 0;
rip:
status = GetLastError();
@ -171,7 +167,7 @@ DWORD uploadHelper(uploadParam *param) {
char webhook[256];
char *webhook_start = webhook, *dataLocked = GlobalLock(param->data), *url = 0;
SIZE_T dataSize = GlobalSize(param->data);
DWORD errCode = 0;
DWORD errCode;
if (dataSize == 0) goto rip;
if (dataLocked == NULL) goto rip;
@ -198,6 +194,7 @@ DWORD uploadHelper(uploadParam *param) {
default:
errorMsgbox(errCode);
}
SendMessageA(progressBar, PBM_SETPOS, 0, 0);
rip:
GlobalUnlock(param->data);
GlobalFree(param->data);
@ -255,7 +252,7 @@ rip:
*/
void uploadFromFile(HWND parent) {
if (FAILED(CoInitializeEx(NULL, COINIT_SPEED_OVER_MEMORY))) return;
uploadParam* param = 0;
uploadParam* param;
HGLOBAL buf = 0;
HANDLE file = 0;
if (uploadThread != NULL) {
@ -412,7 +409,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
}
break;
case WM_NCCREATE:
return TRUE;
return TRUE;
default: break; // SILENCE, CLANG-TIDY!
}
return DefWindowProcA(hWnd, message, wParam, lParam);
}
@ -429,7 +427,7 @@ int WINAPI WinMain(
WNDCLASSEXA wc = { 0 };
wc.cbSize = sizeof(wc);
wc.lpfnWndProc = WndProc;
wc.hIcon = LoadIconA(hInstance, MAKEINTRESOURCEA(IDI_WINDIMGUP));
wc.hIcon = LoadIconA(hInstance, MAKEINTRESOURCEA(2));
wc.hInstance = hInstance;
wc.hbrBackground = bgBrush;
wc.lpszClassName = "WinDimgup";

22
windimgup.exe.manifest Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="CompanyName.ProductName.YourApplication"
type="win32"
/>
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

Binary file not shown.

View File

@ -1,31 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32014.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "windimgup", "windimgup.vcxproj", "{6D5AE63B-E8DE-47C9-BE78-52D681E96459}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Debug|x64.ActiveCfg = Debug|x64
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Debug|x64.Build.0 = Debug|x64
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Debug|x86.ActiveCfg = Debug|Win32
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Debug|x86.Build.0 = Debug|Win32
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Release|x64.ActiveCfg = Release|x64
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Release|x64.Build.0 = Release|x64
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Release|x86.ActiveCfg = Release|Win32
{6D5AE63B-E8DE-47C9-BE78-52D681E96459}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5CDC7BBC-F57C-4C3D-BD5A-FE2968845E51}
EndGlobalSection
EndGlobal

View File

@ -1,180 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{6d5ae63b-e8de-47c9-be78-52d681e96459}</ProjectGuid>
<RootNamespace>windimgup</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;wininet.lib;comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;wininet.lib;comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;wininet.lib;comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;wininet.lib;comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="clipboard.cpp" />
<ClCompile Include="discord_webhook.cpp" />
<ClCompile Include="settings.c" />
<ClCompile Include="windimgup.c" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="windimgup.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="windimgup.ico" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="clipboard.h" />
<ClInclude Include="discord_webhook.h" />
<ClInclude Include="settings.h" />
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<None Include="windimgup.json" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
<ProjectExtensions>
<VisualStudio>
<UserProperties />
</VisualStudio>
</ProjectExtensions>
</Project>

View File

@ -1,58 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="windimgup.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="clipboard.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="discord_webhook.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="settings.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="windimgup.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image Include="windimgup.ico">
<Filter>Resource Files</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<ClInclude Include="clipboard.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="discord_webhook.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="settings.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="windimgup.json" />
</ItemGroup>
</Project>