{"id":183660,"date":"2026-10-06T22:54:06","date_gmt":"2026-10-06T20:54:07","guid":{"rendered":"https:\/\/prohoster.info\/blog\/news\/predstavlena-biblioteka-wincore-dlya-raboty-win32-programm-v-linux-i-macos"},"modified":"2026-10-06T22:54:12","modified_gmt":"2026-10-06T20:54:12","slug":"wincore-library-introduced-for-running-win32-programs-on-linux-and-macos","status":"publish","type":"post","link":"https:\/\/prohoster.info\/lv\/blog\/news\/wincore-library-introduced-for-running-win32-programs-on-linux-and-macos","title":{"rendered":"Iepaz\u012bstin\u0101ta ar WinCore bibliot\u0113ku Win32 programmu darb\u012bbai Linux un macOS.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>WinCore projekts att\u012bsta savietojam\u012bbas sl\u0101ni ar Win32\/WGL, \u013caujot kompil\u0113t Windows programmu kodu, kas uzrakst\u012bts C\/C++ valod\u0101, izmantojot klasiskos Win32 API, lai to var\u0113tu palaist Linux un macOS. WinCore aizst\u0101j klasiskos Win32 apstr\u0101d\u0101t\u0101jus un izmanto daudzplatformu aizmugures render\u0113\u0161anai caur SDL3 vai SDL2. Kod\u0113jums ir uzrakst\u012bts C++ valod\u0101 un tiek izplat\u012bts ar LGPLv3 licenci.    <\/p>\n<p>Projekts ir rezult\u0101ts p\u0101rdom\u0101m par LDL bibliot\u0113ku, kuras autors secin\u0101ja, ka, nevis izstr\u0101d\u0101jot jaunu API, ir lo\u0123isk\u0101k \u0146emt laika p\u0101rbaud\u012btu procedur\u0101lo Win32 API un padar\u012bt to p\u0101rnesamu uz da\u017e\u0101d\u0101m oper\u0113t\u0101jsist\u0113m\u0101m un ier\u012bc\u0113m. Ideja ir t\u0101da, ka kods tiek rakst\u012bts p\u0113c Win32 noteikumiem, bet nat\u012bvi kompil\u0113ts un darbojas Windows, Linux un macOS vid\u0113.     <\/p>\n<p>Bibliot\u0113ka ir rakst\u012bta stingr\u0101 C++98 valod\u0101 maksim\u0101lai p\u0101rnesam\u012bbai, ta\u010du eksport\u0113 t\u012bras C89 galvenes failus, kas nodro\u0161ina atpaka\u013csader\u012bbu un \u013cauj viegli veikt saites uz Rust, Zig, Python un cit\u0101m valod\u0101m caur C FFI. \u0160obr\u012bd ir pievienoti 2 backend'i \u2014 SDL2 un SDL3. N\u0101kotn\u0113 pl\u0101nots pievienot backend'us XLib un Wayland.    <\/p>\n<p>Autors necen\u0161as emul\u0113t visas Windows iesp\u0113jas un koncentr\u0113jas tikai uz daudzmediju apak\u0161sist\u0113m\u0101m un dzin\u0113jiem. \u0160obr\u012bd ir ieviestas 5 funkcijas no Kernel32.dll (modu\u013cu p\u0101rvald\u012bba, sist\u0113mas laiks un aiztures), 25 funkcijas no User32.dll (logu izveide, zi\u0146u cikli, kursora poz\u012bcija un ievades apstr\u0101de), 5 funkcijas no Gdi32.dll (pikse\u013cu form\u0101ta izv\u0113le, bitmapu izvad\u012b\u0161ana un buferu p\u0101rsl\u0113g\u0161ana) un 4 funkcijas no Opengl32.dll (kontekstu WGL izveide, dz\u0113\u0161ana un aktiviz\u0113\u0161ana).    <center><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/10\/f8f4ced89c6b832ec2be3d5f2a59a7a2.png\" style=\"display:block;margin: 0 auto;\" \/><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/10\/8282e3819d4884257aa6bac81a848e71.png\" style=\"display:block;margin: 0 auto;\" \/><\/center><br \/>\n<br \/>Avots: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=66412\">opennet.lv<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0435\u043a\u0442 WinCore \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442 \u0441\u043b\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Win32\/WGL, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 Windows-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 C\/C++ \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e API Win32, \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 Linux \u0438 macOS. WinCore \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Win32 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u0431\u044d\u043a\u0435\u043d\u0434\u044b \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 SDL3 \u0438\u043b\u0438 SDL2. \u041a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 C++ \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 LGPLv3. \u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u0442\u0430\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 LDL, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-183660","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u0440\u043e\u0435\u043a\u0442 WinCore \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442 \u0441\u043b\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Win32\/WGL, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 Windows-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 C\/C++ \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e API Win32, \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 Linux \u0438 macOS.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Alexander Kovalev\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/lv\/blog\/news\/wincore-library-introduced-for-running-win32-programs-on-linux-and-macos\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5\" \/>\n\t\t<meta property=\"og:locale\" content=\"lv_LV\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 WinCore \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b Win32-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0432 Linux \u0438 macOS | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u0440\u043e\u0435\u043a\u0442 WinCore \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442 \u0441\u043b\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Win32\/WGL, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 Windows-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 C\/C++ \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e API Win32, \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 Linux \u0438 macOS.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/lv\/blog\/news\/wincore-library-introduced-for-running-win32-programs-on-linux-and-macos\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-10-06T20:54:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-06T20:54:12+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Prezent\u0113ta WinCore bibliot\u0113ka Win32 programmu darb\u012bbai Linux un macOS | ProHoster","description":"WinCore projekts att\u012bsta savietojam\u012bbas sl\u0101ni ar Win32\/WGL, \u013caujot kompil\u0113t Windows programmu kodu, kas uzrakst\u012bts C\/C++ valod\u0101, izmantojot klasiskos Win32 API, lai to var\u0113tu palaist Linux un macOS.","canonical_url":"https:\/\/prohoster.info\/lv\/blog\/news\/wincore-library-introduced-for-running-win32-programs-on-linux-and-macos","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"lv_LV","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 WinCore \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b Win32-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0432 Linux \u0438 macOS | ProHoster","og:description":"\u041f\u0440\u043e\u0435\u043a\u0442 WinCore \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442 \u0441\u043b\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Win32\/WGL, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 Windows-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 C\/C++ \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e API Win32, \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 Linux \u0438 macOS.","og:url":"https:\/\/prohoster.info\/lv\/blog\/news\/wincore-library-introduced-for-running-win32-programs-on-linux-and-macos","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2026-10-06T20:54:07+00:00","article:modified_time":"2026-10-06T20:54:12+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/183660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/comments?post=183660"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/183660\/revisions"}],"predecessor-version":[{"id":183661,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/183660\/revisions\/183661"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/media?parent=183660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/categories?post=183660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/tags?post=183660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}