From c04d2c04b661a803448dfe83f0f1d3f5f28520f5 Mon Sep 17 00:00:00 2001 From: stkchp Date: Mon, 30 Jul 2018 15:31:14 +0900 Subject: [PATCH] initial commit. --- .gitignore | 15 +++ README.md | 37 +++++++ noyen.sln | 44 ++++++++ noyen/noyen.c | Bin 0 -> 7722 bytes noyen/noyen.h | Bin 0 -> 148 bytes noyen/noyen.ico | Bin 0 -> 46227 bytes noyen/noyen.rc | Bin 0 -> 3928 bytes noyen/noyen.vcxproj | 188 ++++++++++++++++++++++++++++++++++ noyen/noyen.vcxproj.filters | 52 ++++++++++ noyen/resource.h | Bin 0 -> 1500 bytes noyen/small.ico | Bin 0 -> 46227 bytes noyen/stdafx.c | Bin 0 -> 44 bytes noyen/stdafx.h | Bin 0 -> 238 bytes noyen/targetver.h | Bin 0 -> 202 bytes nyhook/nyhook.c | Bin 0 -> 3006 bytes nyhook/nyhook.h | 19 ++++ nyhook/nyhook.vcxproj | 167 ++++++++++++++++++++++++++++++ nyhook/nyhook.vcxproj.filters | 29 ++++++ nyhook/stdafx.c | Bin 0 -> 44 bytes nyhook/stdafx.h | Bin 0 -> 206 bytes 20 files changed, 551 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 noyen.sln create mode 100644 noyen/noyen.c create mode 100644 noyen/noyen.h create mode 100644 noyen/noyen.ico create mode 100644 noyen/noyen.rc create mode 100644 noyen/noyen.vcxproj create mode 100644 noyen/noyen.vcxproj.filters create mode 100644 noyen/resource.h create mode 100644 noyen/small.ico create mode 100644 noyen/stdafx.c create mode 100644 noyen/stdafx.h create mode 100644 noyen/targetver.h create mode 100644 nyhook/nyhook.c create mode 100644 nyhook/nyhook.h create mode 100644 nyhook/nyhook.vcxproj create mode 100644 nyhook/nyhook.vcxproj.filters create mode 100644 nyhook/stdafx.c create mode 100644 nyhook/stdafx.h diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a29a546 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# visual studio related file +.vs +*.user +*.aps + +# output directory +/Release +/Debug +/x64/Release +/x64/Debug +/*/Release +/*/Debug +/*/x64/Release +/*/x64/Debug + diff --git a/README.md b/README.md new file mode 100644 index 0000000..744316c --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# noyen(no ¥) + +## 詳細 + +Remote Desktop for Macにて、日本語キーボードの円(¥)キーを押した際、 +ASCIIのバックスラッシュにあたる`0x5C`ではなく、Unicodeの0xC2A5が +入力されてしまうのをwindows側で回避するプログラム。常駐型。 + +## ダウンロード + +[Releases](releases)からダウンロードしてください。 + + +## 使い方 + +### 開始 + +`noyen.exe`を起動する。 + + +### 終了 + +タスクトレイにあるアイコンをクリックすると出てくる`exit`を選ぶ。 + + +## ライセンス + +- CC0 + +[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png "CC0")](http://creativecommons.org/publicdomain/zero/1.0/deed.ja) + + +## なぜ管理者権限が必要なのか + +管理者権限で開かないと別権限で開いているアプリケーションに対してhookが効かないので。 + + diff --git a/noyen.sln b/noyen.sln new file mode 100644 index 0000000..fdc00da --- /dev/null +++ b/noyen.sln @@ -0,0 +1,44 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2042 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "noyen", "noyen\noyen.vcxproj", "{362914E8-33C0-4E8D-8FCD-F30D0F4AD026}" + ProjectSection(ProjectDependencies) = postProject + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85} = {EFAC7E11-DBDF-4510-98B1-44F8760FCF85} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nyhook", "nyhook\nyhook.vcxproj", "{EFAC7E11-DBDF-4510-98B1-44F8760FCF85}" +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 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Debug|x64.ActiveCfg = Debug|x64 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Debug|x64.Build.0 = Debug|x64 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Debug|x86.ActiveCfg = Debug|Win32 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Debug|x86.Build.0 = Debug|Win32 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Release|x64.ActiveCfg = Release|x64 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Release|x64.Build.0 = Release|x64 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Release|x86.ActiveCfg = Release|Win32 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026}.Release|x86.Build.0 = Release|Win32 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Debug|x64.ActiveCfg = Debug|x64 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Debug|x64.Build.0 = Debug|x64 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Debug|x86.ActiveCfg = Debug|Win32 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Debug|x86.Build.0 = Debug|Win32 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Release|x64.ActiveCfg = Release|x64 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Release|x64.Build.0 = Release|x64 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Release|x86.ActiveCfg = Release|Win32 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3662952-D88D-4FBF-AF99-7A98CD2C5D9A} + EndGlobalSection +EndGlobal diff --git a/noyen/noyen.c b/noyen/noyen.c new file mode 100644 index 0000000000000000000000000000000000000000..faabe108ef3126ec0353a6dbdee0d15821c5c41c GIT binary patch literal 7722 zcmd5>X-`{66rHcHQvZWVC1l!$!q-%7Wo#A;Z}k!vRh4CI15vh7T$_6{HWO1Yugu&m@H{jZ=E3ZmE4=yId}XpI zr{>nIuxq-3ZWrr6fNBM9xA=LV_{&M5B#}mKF06Lcs&1;LVg}~W{D!A4-t1XAr9Z*j zhUs9Xgzqxw3U)7T8Cna;0sQ#!y??d>5w$fW=SVF50 z@Le{iDVt{I4%UrK5jOYXql)<+G(GFpu6^#Cmi0ynvEW+G`+Fz0SEYwuEkT1Ob`{{e zJ9zC9+LK~}zXle2VsFvx*qA)p-%+eb8Inq{q+?^>x0;Wz_ra4H!58vw7vJZgeP{jz zjYNDN|8)yI6*IZ|`un`7<;q4{IF-S901wf(75pxNTfzK=kF2~6Rs>-_ziTst4pZ!! zBEwp-&xN-i%>n2n9%&x5uMC~$(BT34-2n~4VK4TGFOk$D?K#v}h_~QB%o(ChV#-=E z$&kaHl0BkJ4QLv|Mt$3d=aXEBqB?wd3QL&1-59e?;I0iD521MxD;0bOSZ|s$ylVg@ z8ZY0{E9|(3H|CIh7kfmt@K?xFYXCJM|1$V9)7y~I&*6R!t_QGbgz9yP=UYf)6vbZV z%>nlJfRGb#D1v7b$Zg`?06b}5#d0s0@33b-Qws4h2XgE1@f7?Ukax4jv1*;hgzh6Q zB$vXSA+}tFNpo^>>_GCDie<;fo%P7YlC>j(Unjsc<2Z%%HvaOfg|m-nW+b=QnXj1m z81#j(5*;7{j0!6e(a1V3Pd>T@sS8Urf)~b!3H#O(+EUBMxISs64EuxltZXeAg8u}1 zQkHZN)w^#i3A@?AR!3^(qlC!Ji&}ckbtJ9{@1}W+Y-xjU36-XW=So6?csv49`_O{O zCC#BZ!Vc*h|RpmzXdHZGqxUa(H{hn3NfNPUYnmc zb|zN1eEI6BXsrc#-a}jF{3UGCO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proj new file mode 100644 index 0000000..3737293 --- /dev/null +++ b/noyen/noyen.vcxproj @@ -0,0 +1,188 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {362914E8-33C0-4E8D-8FCD-F30D0F4AD026} + Win32Proj + noyen + 10.0.17134.0 + + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + Disabled + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + nyhook.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + RequireAdministrator + + + + + Use + Level3 + Disabled + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + nyhook.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + RequireAdministrator + + + + + Use + Level3 + MinSpace + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + MultiThreaded + + + Windows + true + true + true + nyhook.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + RequireAdministrator + + + + + Use + Level3 + MinSpace + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + MultiThreaded + + + Windows + true + true + true + nyhook.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + RequireAdministrator + + + + + + + + + + + + Create + Create + Create + Create + + + + + + + + + + + + + \ No newline at end of file diff --git a/noyen/noyen.vcxproj.filters b/noyen/noyen.vcxproj.filters new file mode 100644 index 0000000..37a69bf --- /dev/null +++ b/noyen/noyen.vcxproj.filters @@ -0,0 +1,52 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + header files + + + header files + + + header files + + + header files + + + + + source files + + + source files + + + + + resource files + + + + + resource files + + + resource files + + + \ No newline at end of file diff --git a/noyen/resource.h b/noyen/resource.h new file mode 100644 index 0000000000000000000000000000000000000000..3f57933f9ef3467d9ff3bb91f988cf6d870d587a GIT binary patch literal 1500 zcmbVMOG*Pl5Pi551aIJg8$mQ36{5>AlSptf36l?I74nrxNFXtO5b*+DLU8XnJbV_s{(FmD_Ev)3>LEJ zpn(DU81if5oO@;N4KYFuU9OVYq**vsYopbAN!_cedQ`9KNsZN;dR7)*)B|_MYDsnG^Al|>hH1RE5Z4(8+OwEl3s+j}Mu9b| zy{p$3TJ=(ib2*>YMWRQEZ4@uvl>QT6hO3`l^c^*Y6IP+h z`pSDE%J&%|#ho%^yIlXSxm5QcGT#7MdOu6Ed2i|6a9j(!L{88a&)d8#MP@B5&PSI{ f5{qIw$lTONDm))olo_W5$nsJ)`4YA#k*3$5T$aH> literal 0 HcmV?d00001 diff --git a/noyen/small.ico b/noyen/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y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l}o! literal 0 HcmV?d00001 diff --git a/noyen/targetver.h b/noyen/targetver.h new file mode 100644 index 0000000000000000000000000000000000000000..71e561dc7087bc456041eee28e7536c6e680f1dd GIT binary patch literal 202 zcmZvWPYZ%j5X67ypzk2OyI4Ud@ni=H-oe6-5&lU*Ed-%YUyY9fiCAXY*=2U-^)%cW zxNxOY_qfrMQ?g{?U?{{Y8tqHnPb63}cBEqS3V0B(6;^+h=Z|*7n(u5m>c_8g@;1&f Xr)6{rJVFk{?1iakN;BY76FIjxO5_~3 literal 0 HcmV?d00001 diff --git a/nyhook/nyhook.c b/nyhook/nyhook.c new file mode 100644 index 0000000000000000000000000000000000000000..628e50f860dc3c6dc6648f31d17ce39fbcd55801 GIT binary patch literal 3006 zcmds(TTc^F6ovQenD`$CeQAw~VDtf_rnDs`7Bs!k_%s1pgn(e$$|c6Xu72yBIn1R4 zs1H7vNlTftuWPTp_xbtbp&i+&?c0fcwXsbswg)z|Ilp)9z%K2n9rEVB-E*HR=~KHx z=8WgKB;B!&z2|v{)gY1B7n>rx&%4)rwryx#o>$I($2NJ>w}CbI+q5=iss91_o zJa!r*Bzn$o;-X8)Z-Rvx@t&Gwy7<{aYBQD6`Hauh&iNi&-R1txeMg*J;C&84hv?Su zsho>ey+&j~XW#i#^;!*edsOE$XHGea#{wRknHW z1GIbiZV*qk@4IwbXp05;co%ibSypL9wwG4qIAvL6-%|usi8=UAsZ{J(FvPFV%gcx{ zU6)JWv0#8)leom$br+x5eTo*Bq1P$Ryw-22UI(MpUSQ-3AQP*#&(e z-CcMdIFmm=$(zDOGH>EnUA9ehmmtz1 zQuTA2|7sPzs|btvEM|~kFUzT(qAENiCc=8k)G#5`^F0t&tg$`9_a0dJ8BzNUd2uuE z&)3jR0HCwgkwgT!i$7D@IU#B(RzO)x9SG<)uXR@H@oG3Hd zRqQ;w!OH5jm8@F%iYre|v=MAb$hOTiYEdywv~sUUFv?flWAwz{xJa65)S>!2*wGwN z{bg~0rPw|pr5s`^ttlCLxXNn4qiorua=W$A5$c7Bn{%i5t$~q8DF$1iA|?qneFu&# z@^j@n&d|9Ns_kb^K%>aODny5%@&BXg+0$m@_|3L)%_!ynr%0=VJX6BfD9+4(H#xF- zyiIq6xuN-{Egt9gdj3X|FxkdD+GpW@Af|}>#W|Y4H3W&!9f4zuw-|Ln5fMMf!WM}t zrl+53eQ=!hOxC{$so0@J(d;5R|AFa-0E*Uc5E g+I;nj2@))2Ti;i>c(+}gY5~E(vJA8Gey&FM7mNqA;s5{u literal 0 HcmV?d00001 diff --git a/nyhook/nyhook.h b/nyhook/nyhook.h new file mode 100644 index 0000000..c53dc38 --- /dev/null +++ b/nyhook/nyhook.h @@ -0,0 +1,19 @@ +#pragma once + +#ifdef NYHOOK_EXPORTS +#define NYHOOK_API __declspec(dllexport) +#else +#define NYHOOK_API __declspec(dllimport) +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// global hook add/remove +NYHOOK_API BOOL nyhook_add(HWND _wnd); +NYHOOK_API BOOL nyhook_remove(); + +#ifdef __cplusplus +} +#endif diff --git a/nyhook/nyhook.vcxproj b/nyhook/nyhook.vcxproj new file mode 100644 index 0000000..e2ca906 --- /dev/null +++ b/nyhook/nyhook.vcxproj @@ -0,0 +1,167 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {EFAC7E11-DBDF-4510-98B1-44F8760FCF85} + Win32Proj + nyhook + 10.0.17134.0 + + + + DynamicLibrary + true + v141 + Unicode + + + DynamicLibrary + false + v141 + true + Unicode + + + DynamicLibrary + true + v141 + Unicode + + + DynamicLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + Disabled + true + WIN32;_DEBUG;NYHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Use + Level3 + Disabled + true + _DEBUG;NYHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Use + Level3 + MinSpace + true + true + true + WIN32;NDEBUG;NYHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + MultiThreaded + + + Windows + true + true + true + + + + + Use + Level3 + MinSpace + true + true + true + NDEBUG;NYHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + MultiThreaded + + + Windows + true + true + true + + + + + + + + + + Create + Create + Create + Create + + + + + + \ No newline at end of file diff --git a/nyhook/nyhook.vcxproj.filters b/nyhook/nyhook.vcxproj.filters new file mode 100644 index 0000000..1dd2312 --- /dev/null +++ b/nyhook/nyhook.vcxproj.filters @@ -0,0 +1,29 @@ + + + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + header files + + + header files + + + + + source files + + + source files + + + \ No newline at end of file diff --git a/nyhook/stdafx.c b/nyhook/stdafx.c new file mode 100644 index 0000000000000000000000000000000000000000..08343afdf790eaa4524432ba7b0c3ddc395ee814 GIT binary patch literal 44 xcmezWPnjW;A&()MA%~%qA%!88L4iSup_rir$WCNPW2j)zW5@uC@G@{Q008!y2%rD} literal 0 HcmV?d00001 diff --git a/nyhook/stdafx.h b/nyhook/stdafx.h new file mode 100644 index 0000000000000000000000000000000000000000..bff6f7e7db4d004c6952263ecbfd2b40e2cd4aec GIT binary patch literal 206 zcmZXNO$&lR6h+TE=s$?=Tj(}|pca9(brVRWeL!i9nfT|kJCDGH40Gqr;oW