{"id":500841,"date":"2026-10-29T12:46:56","date_gmt":"2026-10-29T09:46:56","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=500841"},"modified":"2026-10-29T12:46:56","modified_gmt":"2026-10-29T09:46:56","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=500841","title":{"rendered":"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 AnyDesk \u043d\u0430 C++ \u0438 \u043d\u0435 \u0441\u043e\u0439\u0442\u0438 \u0441 \u0443\u043c\u0430: \u0431\u0438\u0442\u0432\u0430 \u0441 OLE, GDI+ \u0438 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044f\u043c\u0438"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439, \u043a\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438, \u0437\u043d\u0430\u0435\u0442 \u044d\u0442\u0443 \u0431\u043e\u043b\u044c. \u0422\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0448\u044c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0440\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430, \u0430 AnyDesk \u0438\u043b\u0438 TeamViewer \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0442\u0435\u0431\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u044d\u043a\u0440\u0430\u043d. \u0418\u043b\u0438 \u0442\u043e\u0433\u043e \u0445\u0443\u0436\u0435 \u2014 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u043e\u0439 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u2014 \u044d\u0442\u043e \u043f\u044b\u0442\u043a\u0430.<\/p>\n<p>\u0422\u0430\u043a \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0411\u0435\u0437 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 Electron.js \u043e\u0431\u0435\u0440\u0442\u043e\u043a, \u0432\u0435\u0441\u043e\u043c \u0432 200 \u041c\u0411, \u0430 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 Win32 API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0435\u0441\u0438\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430 \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b (\u044f \u0438 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438) \u0441\u0442\u0440\u043e\u0438\u043b\u0438 OmniDesk \u0441 \u043d\u0443\u043b\u044f, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u0441\u0442\u044b\u043b\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u0431\u0443\u0444\u0435\u0440\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443\u00a0<code>TCP_NODELAY<\/code>\u00a0\u2014 \u044d\u0442\u043e \u0441\u043f\u0430\u0441\u0435\u043d\u0438\u0435.<\/p>\n<h4>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u0414\u0432\u0430 \u043a\u0430\u043d\u0430\u043b\u0430 \u2014 \u0434\u0432\u0430 \u043f\u043e\u0440\u0442\u0430<\/h4>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c. \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0448\u044c IP, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0448\u044c, \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c. \u041d\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0447\u0435\u0440\u0435\u0437 NAT \u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0425\u0430\u0431).<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435, \u2014 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0432\u0438\u0434\u0435\u043e \u0432 \u043e\u0434\u0438\u043d TCP-\u0441\u043e\u043a\u0435\u0442. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u0448\u043b\u0438 \u0442\u044f\u0436\u0435\u043b\u044b\u0435 \u043a\u0430\u0434\u0440\u044b, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u044c\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e \u0436\u0443\u0442\u043a\u043e \u043b\u0430\u0433\u0430\u0442\u044c. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0438 \u043d\u0430 \u0434\u0432\u0430 \u043f\u043e\u0440\u0442\u0430:\u00a0<strong>8888<\/strong>\u00a0(\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u044b\u0448\u0438, \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u0431\u0443\u0444\u0435\u0440) \u0438\u00a0<strong>8889<\/strong>\u00a0(\u0442\u044f\u0436\u0435\u043b\u044b\u0439 \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a). \u041f\u043e\u0437\u0436\u0435 \u044f \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0432\u0430 \u0441\u043e\u043a\u0435\u0442\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0443, \u043d\u043e \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0431\u0435\u0437\u043e\u0442\u043a\u0430\u0437\u043d\u043e.<\/p>\n<h4>\u0412\u0438\u0434\u0435\u043e \u043d\u0430 \u0447\u0435\u0441\u0442\u043d\u044b\u0445 60 FPS<\/h4>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0437\u0430\u0445\u0432\u0430\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c \u0437\u0430\u0445\u0432\u0430\u0442\u0435, \u0430 \u0432\u00a0<strong>\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0442\u043e\u043a\u043e\u0432<\/strong>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0421\u0435\u0440\u0432\u0435\u0440 (\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f), \u0430 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u041a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u044b. \u041a\u043b\u0438\u0435\u043d\u0442 \u0436\u0434\u0430\u043b \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a, \u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0434\u0430\u043b \u0442\u043e\u043a\u0435\u043d \u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043e\u043a\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c.<\/p>\n<p>\u0420\u0435\u0448\u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u0430\u043a\u0435\u0442\u043e\u0432. \u0412\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0434\u0435\u043e-\u043a\u0430\u043d\u0430\u043b\u0430 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u0442\u0440\u043e\u0433\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0448\u043b\u0435\u043c\u00a0<code>MAGIC<\/code>\u00a0(\u043c\u0430\u0440\u043a\u0435\u0440), \u0437\u0430\u0442\u0435\u043c\u00a0<code>ID \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430<\/code>, \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0434\u0440\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u0445\u0432\u0430\u0442 \u0438 \u0441\u0436\u0430\u0442\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 (\u043a\u0443\u0441\u043e\u043a \u0438\u0437\u00a0<code>Server.h<\/code>):  <\/p>\n<pre><code class=\"cpp\">\/\/ \u0417\u0430\u0445\u0432\u0430\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0441\u0436\u0430\u0442\u0438\u0435 \u0432 JPEG \u0447\u0435\u0440\u0435\u0437 GDI+static bool CaptureScreenToJpegBuffer(RECT rect, std::vector&lt;char&gt;&amp; out, const CLSID&amp; jpegClsid) {    \/\/ ... \u0437\u0430\u0445\u0432\u0430\u0442 \u0447\u0435\u0440\u0435\u0437 BitBlt ...    Gdiplus::Bitmap bitmap(bmp, NULL);    IStream* stream = nullptr;    if (CreateStreamOnHGlobal(NULL, TRUE, &amp;stream) == S_OK) {        Gdiplus::EncoderParameters params;        params.Count = 1;        params.Parameter[0].Guid = Gdiplus::EncoderQuality;        params.Parameter[0].Type = Gdiplus::EncoderParameterValueTypeLong;        params.Parameter[0].NumberOfValues = 1;        ULONG quality = 85; \/\/ \u0411\u0430\u043b\u0430\u043d\u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430        params.Parameter[0].Value = &amp;quality;                \/\/ \u0421\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0432 \u043f\u0430\u043c\u044f\u0442\u044c        if (bitmap.Save(stream, &amp;jpegClsid, &amp;params) == Gdiplus::Ok) {            \/\/ ... \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0431\u0430\u0439\u0442\u044b \u0432 \u0431\u0443\u0444\u0435\u0440 ...        }    }    return ok;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u0410 \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a, \u043c\u044b \u043d\u0430\u0433\u043b\u0443\u0445\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u041d\u0430\u0433\u043b\u0430 (<code>TCP_NODELAY<\/code>). \u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e Winsock \u043a\u043e\u043f\u0438\u0442 \u043c\u0435\u043b\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 40-200 \u043c\u0441.  <\/p>\n<h4>\u0421\u0430\u043c\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0431\u043e\u043b\u044c: \u0411\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 \u0438 OLE COM<\/h4>\n<p>\u0422\u0435\u043a\u0441\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0435\u0433\u043a\u043e. \u0410 \u0432\u043e\u0442 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0430\u043f\u043a\u0438 \u2014 \u044d\u0442\u043e \u0430\u0434. \u0415\u0441\u043b\u0438 \u0433\u043d\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043f\u043e \u0441\u0435\u0442\u0438 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u044f\u00a0<code>Ctrl+C<\/code>, \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u0442 \u043d\u0430\u043c\u0435\u0440\u0442\u0432\u043e. \u0410 \u0435\u0441\u043b\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0448\u044c \u043f\u0430\u043f\u043a\u0443 \u043d\u0430 10 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u2014 \u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u044c\u0435\u0448\u044c \u0441\u0435\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u0435\u0431\u0440\u0438\u00a0<strong>Win32 OLE COM<\/strong>. Windows \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b\u00a0<code>IDataObject<\/code>\u00a0\u0438\u00a0<code>IStream<\/code>\u00a0\u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043c\u044b \u0434\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439\u00a0<em>\u043f\u0440\u0438\u0442\u0432\u043e\u0440\u044f\u0435\u0442\u0441\u044f<\/em>\u00a0\u0444\u0430\u0439\u043b\u043e\u043c. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0436\u043c\u0435\u0442\u00a0<code>Ctrl+V<\/code>, \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a \u0441\u0430\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0440\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u00a0<code>IStream::Read<\/code>\u00a0\u2014 \u044d\u0442\u043e \u0441\u0435\u0440\u0434\u0446\u0435 \u043c\u0430\u0433\u0438\u0438. \u041c\u044b \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u043c \u0432\u0435\u0441\u044c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c, \u0430 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u043d\u043a\u0438 \u043f\u043e \u0441\u0435\u0442\u0438:<\/p>\n<pre><code class=\"cpp\">STDMETHODIMP Read(void* pv, ULONG cb, ULONG* pcbRead) {    \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441: \"\u0421\u0435\u0440\u0432\u0435\u0440, \u0434\u0430\u0439 \u043c\u043d\u0435 \u043a\u0443\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u0430 \u0441 \u0442\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\"    OleChunkRequest request{};    request.opcode = 4;    request.fileIndex = m_FileIndex;    request.byteOffset = m_BytesRead;    request.bytesRequested = static_cast&lt;uint32_t&gt;(bytesToFetch);    \/\/ \u0428\u043b\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441    if (::send(g_ActiveClipboardSocket, (const char*)&amp;request, sizeof(OleChunkRequest), 0) &lt;= 0) {        return E_FAIL;    }    \/\/ \u0416\u0434\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u2014 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u0430    if (!RecvAll(g_ActiveClipboardSocket, (char*)pv, bytesToFetch)) {        return E_FAIL;    }    OmniCrypto::ProcessData((char*)pv, bytesToFetch, MSG_FILE_CHUNK);    m_BytesRead += bytesToFetch;    if (pcbRead != nullptr) *pcbRead = bytesToFetch;    return S_OK;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u044f\u0441\u0430\u044e\u0449\u0435. \u0412\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 \u0441 1000 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0443 \u0441\u0435\u0431\u044f \u2014 \u0438 Windows \u0441\u0430\u043c\u0430 \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u0435 \u0437\u0430\u0431\u0438\u0432\u0430\u044f \u0434\u0438\u0441\u043a \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043a\u0443.  <\/p>\n<h4>\u0418\u0418 \u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434, \u0430 \u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b \u0431\u044d\u043a\u0430\u043f\u044b<\/h4>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c \u2014 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044f\u043c\u0438. \u042f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 90% \u043a\u043e\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b Google \u0418\u0418 (\u0442\u043e\u0442, \u0447\u0442\u043e \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u00ab\u0420\u0435\u0436\u0438\u043c \u0418\u0418\u00bb).<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044d\u0442\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u0430\u0433\u0438\u0435\u0439. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (\u0430 \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u00a0<em>\u0432\u0441\u0451<\/em>\u00a0\u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e), \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u0430\u0434. \u041d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u0443\u0442\u0430\u043b\u0430\u0441\u044c \u0432 \u043c\u044c\u044e\u0442\u0435\u043a\u0441\u0430\u0445. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0433\u043b\u0430 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u043b\u0435\u0442\u0430\u0442\u044c \u0441\u00a0<code>Access Violation<\/code>\u00a0\u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041a\u0443\u0447\u0443 \u0440\u0430\u0437 \u044f \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0418\u0418 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b \u00ab\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u00bb \u043a\u043e\u0434, \u043b\u043e\u043c\u0430\u043b \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e, \u0438 \u0432\u0441\u0451 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u0440\u043e\u0440\u044b\u0432 \u0441\u043b\u0443\u0447\u0438\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u00ab\u043d\u0430\u043f\u0438\u0448\u0438 \u043c\u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434\u00bb, \u0438 \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u00ab\u043e\u0431\u044a\u044f\u0441\u043d\u0438, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0434\u0435\u0434\u043b\u043e\u043a\u00bb.<\/p>\n<h4>\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u043d\u043e\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u0438\u043d \u0441\u043e\u043a\u0435\u0442<\/h4>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0441\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u0438\u043d \u0432\u0438\u0434\u0435\u043e\u0441\u043e\u043a\u0435\u0442. \u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u0445 \u0432 \u0446\u0438\u043a\u043b\u0435, \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, \u0441\u0436\u0438\u043c\u0430\u0435\u0442 \u0438 \u0448\u043b\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u043a\u0430\u0437\u0430\u043d ID \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430. \u041a\u043b\u0438\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442, \u0441\u043c\u043e\u0442\u0440\u0438\u0442 ID \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0432 \u043a\u0430\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u0430\u0434\u0440.<\/p>\n<pre><code class=\"cpp\">\/\/ \u041a\u043b\u0438\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 \u0435\u0433\u043eif (!RecvAll(sock, (char*)&amp;magic, sizeof(magic))) break;if (magic != 0x4F4D4E49) break; \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043c\u0430\u0440\u043a\u0435\u0440\u0430int mId = 0; uint64_t size = 0;if (!RecvAll(sock, (char*)&amp;mId, sizeof(mId))) break;     \/\/ \u041a\u0430\u043a\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440?if (!RecvAll(sock, (char*)&amp;size, sizeof(size))) break;   \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438?\/\/ \u0415\u0441\u043b\u0438 ID \u043d\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043a\u043d\u043e, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u2014 \u0440\u0438\u0441\u0443\u0435\u043c \u043a\u0430\u0434\u0440<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h4>\u0418\u0442\u043e\u0433<\/h4>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0435\u0441\u043e\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f:<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u0434 Windows (\u043d\u0438\u043a\u0430\u043a\u043e\u0439 Electron.js).<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0444\u0440\u0443\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c ChaCha20.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u00ab\u043d\u0430 \u043b\u0435\u0442\u0443\u00bb \u0447\u0435\u0440\u0435\u0437 OLE COM.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u044f \u043f\u043e\u043a\u0430 \u0434\u0435\u0440\u0436\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 (\u0432 \u043f\u043b\u0430\u043d\u0430\u0445 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f), \u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438. \u0421 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043b\u043e\u0432\u0438\u043b\u0438 \u0431\u0430\u0433\u0438 \u0441\u00a0<code>CreateStreamOnHGlobal<\/code>\u00a0\u0438\u043b\u0438 \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 GDI+ \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u0443\u0442\u0435\u0447\u0435\u043a \u043f\u0430\u043c\u044f\u0442\u0438!<\/p>\n<p><em>\u0410 \u043a\u0430\u043a \u0432\u044b \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043d\u043e\u0433\u043e\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u043d\u044b\u043c\u0438 \u0441\u0442\u0430\u043d\u0446\u0438\u044f\u043c\u0438? \u0418\u043b\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043c\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0432 AnyDesk?<\/em>  <\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0434\u0435\u043c\u043e \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443, \u0441\u043a\u0438\u043d\u0443 \u0441\u0441\u044b\u043b\u043a\u0443<\/em>.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1101118\/\">https:\/\/habr.com\/ru\/articles\/1101118\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!\u041a\u0430\u0436\u0434\u044b\u0439, \u043a\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438, \u0437\u043d\u0430\u0435\u0442 \u044d\u0442\u0443 \u0431\u043e\u043b\u044c. \u0422\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0448\u044c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0440\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430, \u0430 AnyDesk \u0438\u043b\u0438 TeamViewer \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0442\u0435\u0431\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u044d\u043a\u0440\u0430\u043d. \u0418\u043b\u0438 \u0442\u043e\u0433\u043e \u0445\u0443\u0436\u0435 \u2014 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u043e\u0439 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u2014 \u044d\u0442\u043e \u043f\u044b\u0442\u043a\u0430.\u0422\u0430\u043a \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0411\u0435\u0437 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 Electron.js \u043e\u0431\u0435\u0440\u0442\u043e\u043a, \u0432\u0435\u0441\u043e\u043c \u0432 200 \u041c\u0411, \u0430 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 Win32 API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0435\u0441\u0438\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430 \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435.\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b (\u044f \u0438 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438) \u0441\u0442\u0440\u043e\u0438\u043b\u0438 OmniDesk \u0441 \u043d\u0443\u043b\u044f, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u0441\u0442\u044b\u043b\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u0431\u0443\u0444\u0435\u0440\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443\u00a0TCP_NODELAY\u00a0\u2014 \u044d\u0442\u043e \u0441\u043f\u0430\u0441\u0435\u043d\u0438\u0435.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u0414\u0432\u0430 \u043a\u0430\u043d\u0430\u043b\u0430 \u2014 \u0434\u0432\u0430 \u043f\u043e\u0440\u0442\u0430\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c. \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0448\u044c IP, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0448\u044c, \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c. \u041d\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0447\u0435\u0440\u0435\u0437 NAT \u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0425\u0430\u0431).\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435, \u2014 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0432\u0438\u0434\u0435\u043e \u0432 \u043e\u0434\u0438\u043d TCP-\u0441\u043e\u043a\u0435\u0442. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u0448\u043b\u0438 \u0442\u044f\u0436\u0435\u043b\u044b\u0435 \u043a\u0430\u0434\u0440\u044b, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u044c\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e \u0436\u0443\u0442\u043a\u043e \u043b\u0430\u0433\u0430\u0442\u044c. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0438 \u043d\u0430 \u0434\u0432\u0430 \u043f\u043e\u0440\u0442\u0430:\u00a08888\u00a0(\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u044b\u0448\u0438, \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u0431\u0443\u0444\u0435\u0440) \u0438\u00a08889\u00a0(\u0442\u044f\u0436\u0435\u043b\u044b\u0439 \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a). \u041f\u043e\u0437\u0436\u0435 \u044f \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0432\u0430 \u0441\u043e\u043a\u0435\u0442\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0443, \u043d\u043e \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0431\u0435\u0437\u043e\u0442\u043a\u0430\u0437\u043d\u043e.\u0412\u0438\u0434\u0435\u043e \u043d\u0430 \u0447\u0435\u0441\u0442\u043d\u044b\u0445 60 FPS\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0437\u0430\u0445\u0432\u0430\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c \u0437\u0430\u0445\u0432\u0430\u0442\u0435, \u0430 \u0432\u00a0\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0442\u043e\u043a\u043e\u0432. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0421\u0435\u0440\u0432\u0435\u0440 (\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f), \u0430 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u041a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u044b. \u041a\u043b\u0438\u0435\u043d\u0442 \u0436\u0434\u0430\u043b \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a, \u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0434\u0430\u043b \u0442\u043e\u043a\u0435\u043d \u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043e\u043a\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c.\u0420\u0435\u0448\u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u0430\u043a\u0435\u0442\u043e\u0432. \u0412\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0434\u0435\u043e-\u043a\u0430\u043d\u0430\u043b\u0430 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u0442\u0440\u043e\u0433\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0448\u043b\u0435\u043c\u00a0MAGIC\u00a0(\u043c\u0430\u0440\u043a\u0435\u0440), \u0437\u0430\u0442\u0435\u043c\u00a0ID \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430, \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0434\u0440\u0430.\u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u0445\u0432\u0430\u0442 \u0438 \u0441\u0436\u0430\u0442\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 (\u043a\u0443\u0441\u043e\u043a \u0438\u0437\u00a0Server.h):  \/\/ \u0417\u0430\u0445\u0432\u0430\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0441\u0436\u0430\u0442\u0438\u0435 \u0432 JPEG \u0447\u0435\u0440\u0435\u0437 GDI+static bool CaptureScreenToJpegBuffer(RECT rect, std::vector&lt;char&gt;&amp; out, const CLSID&amp; jpegClsid) {    \/\/ &#8230; \u0437\u0430\u0445\u0432\u0430\u0442 \u0447\u0435\u0440\u0435\u0437 BitBlt &#8230;    Gdiplus::Bitmap bitmap(bmp, NULL);    IStream* stream = nullptr;    if (CreateStreamOnHGlobal(NULL, TRUE, &amp;stream) == S_OK) {        Gdiplus::EncoderParameters params;        params.Count = 1;        params.Parameter[0].Guid = Gdiplus::EncoderQuality;        params.Parameter[0].Type = Gdiplus::EncoderParameterValueTypeLong;        params.Parameter[0].NumberOfValues = 1;        ULONG quality = 85; \/\/ \u0411\u0430\u043b\u0430\u043d\u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430        params.Parameter[0].Value = &amp;quality;                \/\/ \u0421\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0432 \u043f\u0430\u043c\u044f\u0442\u044c        if (bitmap.Save(stream, &amp;jpegClsid, &amp;params) == Gdiplus::Ok) {            \/\/ &#8230; \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0431\u0430\u0439\u0442\u044b \u0432 \u0431\u0443\u0444\u0435\u0440 &#8230;        }    }    return ok;}\u0410 \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a, \u043c\u044b \u043d\u0430\u0433\u043b\u0443\u0445\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u041d\u0430\u0433\u043b\u0430 (TCP_NODELAY). \u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e Winsock \u043a\u043e\u043f\u0438\u0442 \u043c\u0435\u043b\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 40-200 \u043c\u0441.  \u0421\u0430\u043c\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0431\u043e\u043b\u044c: \u0411\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 \u0438 OLE COM\u0422\u0435\u043a\u0441\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0435\u0433\u043a\u043e. \u0410 \u0432\u043e\u0442 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0430\u043f\u043a\u0438 \u2014 \u044d\u0442\u043e \u0430\u0434. \u0415\u0441\u043b\u0438 \u0433\u043d\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043f\u043e \u0441\u0435\u0442\u0438 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u044f\u00a0Ctrl+C, \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u0442 \u043d\u0430\u043c\u0435\u0440\u0442\u0432\u043e. \u0410 \u0435\u0441\u043b\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0448\u044c \u043f\u0430\u043f\u043a\u0443 \u043d\u0430 10 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u2014 \u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u044c\u0435\u0448\u044c \u0441\u0435\u0442\u044c.\u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u0435\u0431\u0440\u0438\u00a0Win32 OLE COM. Windows \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b\u00a0IDataObject\u00a0\u0438\u00a0IStream\u00a0\u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043c\u044b \u0434\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439\u00a0\u043f\u0440\u0438\u0442\u0432\u043e\u0440\u044f\u0435\u0442\u0441\u044f\u00a0\u0444\u0430\u0439\u043b\u043e\u043c. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0436\u043c\u0435\u0442\u00a0Ctrl+V, \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a \u0441\u0430\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0440\u0446\u0438\u044f\u043c\u0438.\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u00a0IStream::Read\u00a0\u2014 \u044d\u0442\u043e \u0441\u0435\u0440\u0434\u0446\u0435 \u043c\u0430\u0433\u0438\u0438. \u041c\u044b \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u043c \u0432\u0435\u0441\u044c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c, \u0430 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u043d\u043a\u0438 \u043f\u043e \u0441\u0435\u0442\u0438:STDMETHODIMP Read(void* pv, ULONG cb, ULONG* pcbRead) {    \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441: &#171;\u0421\u0435\u0440\u0432\u0435\u0440, \u0434\u0430\u0439 \u043c\u043d\u0435 \u043a\u0443\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u0430 \u0441 \u0442\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f&#187;    OleChunkRequest request{};    request.opcode = 4;    request.fileIndex = m_FileIndex;    request.byteOffset = m_BytesRead;    request.bytesRequested = static_cast&lt;uint32_t&gt;(bytesToFetch);    \/\/ \u0428\u043b\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441    if (::send(g_ActiveClipboardSocket, (const char*)&amp;request, sizeof(OleChunkRequest), 0) &lt;= 0) {        return E_FAIL;    }    \/\/ \u0416\u0434\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u2014 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u0430    if (!RecvAll(g_ActiveClipboardSocket, (char*)pv, bytesToFetch)) {        return E_FAIL;    }    OmniCrypto::ProcessData((char*)pv, bytesToFetch, MSG_FILE_CHUNK);    m_BytesRead += bytesToFetch;    if (pcbRead != nullptr) *pcbRead = bytesToFetch;    return S_OK;}\u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u044f\u0441\u0430\u044e\u0449\u0435. \u0412\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 \u0441 1000 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0443 \u0441\u0435\u0431\u044f \u2014 \u0438 Windows \u0441\u0430\u043c\u0430 \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u0435 \u0437\u0430\u0431\u0438\u0432\u0430\u044f \u0434\u0438\u0441\u043a \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043a\u0443.  \u0418\u0418 \u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434, \u0430 \u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b \u0431\u044d\u043a\u0430\u043f\u044b\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c \u2014 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044f\u043c\u0438. \u042f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 90% \u043a\u043e\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b Google \u0418\u0418 (\u0442\u043e\u0442, \u0447\u0442\u043e \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u00ab\u0420\u0435\u0436\u0438\u043c \u0418\u0418\u00bb).\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044d\u0442\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u0430\u0433\u0438\u0435\u0439. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (\u0430 \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u00a0\u0432\u0441\u0451\u00a0\u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e), \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u0430\u0434. \u041d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u0443\u0442\u0430\u043b\u0430\u0441\u044c \u0432 \u043c\u044c\u044e\u0442\u0435\u043a\u0441\u0430\u0445. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0433\u043b\u0430 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u043b\u0435\u0442\u0430\u0442\u044c \u0441\u00a0Access Violation\u00a0\u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041a\u0443\u0447\u0443 \u0440\u0430\u0437 \u044f \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0418\u0418 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b \u00ab\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u00bb \u043a\u043e\u0434, \u043b\u043e\u043c\u0430\u043b \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e, \u0438 \u0432\u0441\u0451 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u0440\u043e\u0440\u044b\u0432 \u0441\u043b\u0443\u0447\u0438\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u00ab\u043d\u0430\u043f\u0438\u0448\u0438 \u043c\u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434\u00bb, \u0438 \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u00ab\u043e\u0431\u044a\u044f\u0441\u043d\u0438, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0434\u0435\u0434\u043b\u043e\u043a\u00bb.\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u043d\u043e\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u0438\u043d \u0441\u043e\u043a\u0435\u0442\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0441\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u0438\u043d \u0432\u0438\u0434\u0435\u043e\u0441\u043e\u043a\u0435\u0442. \u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u0445 \u0432 \u0446\u0438\u043a\u043b\u0435, \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, \u0441\u0436\u0438\u043c\u0430\u0435\u0442 \u0438 \u0448\u043b\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u043a\u0430\u0437\u0430\u043d ID \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430. \u041a\u043b\u0438\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442, \u0441\u043c\u043e\u0442\u0440\u0438\u0442 ID \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0432 \u043a\u0430\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u0430\u0434\u0440.\/\/ \u041a\u043b\u0438\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 \u0435\u0433\u043eif (!RecvAll(sock, (char*)&amp;magic, sizeof(magic))) break;if (magic != 0x4F4D4E49) break; \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043c\u0430\u0440\u043a\u0435\u0440\u0430int mId = 0; uint64_t size = 0;if (!RecvAll(sock, (char*)&amp;mId, sizeof(mId))) break;     \/\/ \u041a\u0430\u043a\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440?if (!RecvAll(sock, (char*)&amp;size, sizeof(size))) break;   \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438?\/\/ \u0415\u0441\u043b\u0438 ID \u043d\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043a\u043d\u043e, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u2014 \u0440\u0438\u0441\u0443\u0435\u043c \u043a\u0430\u0434\u0440\u0418\u0442\u043e\u0433\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0435\u0441\u043e\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f:\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u0434 Windows (\u043d\u0438\u043a\u0430\u043a\u043e\u0439 Electron.js).\u0428\u0438\u0444\u0440\u0443\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c ChaCha20.\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u00ab\u043d\u0430 \u043b\u0435\u0442\u0443\u00bb \u0447\u0435\u0440\u0435\u0437 OLE COM.\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435.\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u044f \u043f\u043e\u043a\u0430 \u0434\u0435\u0440\u0436\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 (\u0432 \u043f\u043b\u0430\u043d\u0430\u0445 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f), \u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438. \u0421 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043b\u043e\u0432\u0438\u043b\u0438 \u0431\u0430\u0433\u0438 \u0441\u00a0CreateStreamOnHGlobal\u00a0\u0438\u043b\u0438 \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 GDI+ \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u0443\u0442\u0435\u0447\u0435\u043a \u043f\u0430\u043c\u044f\u0442\u0438!\u0410 \u043a\u0430\u043a \u0432\u044b \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043d\u043e\u0433\u043e\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u043d\u044b\u043c\u0438 \u0441\u0442\u0430\u043d\u0446\u0438\u044f\u043c\u0438? \u0418\u043b\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043c\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0432 AnyDesk?  \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0434\u0435\u043c\u043e \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443, \u0441\u043a\u0438\u043d\u0443 \u0441\u0441\u044b\u043b\u043a\u0443.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1101118\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-500841","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500841"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500841\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}