Skip to content

Commit

Permalink
feat: 添加自签名证书
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Apr 24, 2024
1 parent 161837c commit ea5eeaf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions certs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!*.pfx
Binary file added certs/Magpie.pfx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/TouchHelper/TouchHelper.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<AdditionalDependencies>Pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>Magnification.lib;%(AdditionalDependencies)</AdditionalDependencies>
<UACUIAccess>true</UACUIAccess>
</Link>
</ItemDefinitionGroup>
Expand Down
13 changes: 13 additions & 0 deletions src/TouchHelper/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
#include "pch.h"
#include <magnification.h>

int APIENTRY wWinMain(
_In_ HINSTANCE /*hInstance*/,
_In_opt_ HINSTANCE /*hPrevInstance*/,
_In_ LPWSTR /*lpCmdLine*/,
_In_ int /*nCmdShow*/
) {
if (!MagInitialize()) {
MessageBox(NULL, L"失败", L"消息", MB_OK);
return 1;
}

RECT srcRect{ 0,0,100,100 };
RECT destRect{ 10,10,210,210 };
if (!MagSetInputTransform(TRUE, &srcRect, &destRect)) {
MessageBox(NULL, L"失败", L"消息", MB_OK);
return 1;
}

return 0;
}

0 comments on commit ea5eeaf

Please sign in to comment.