{"id":20851969,"url":"https://github.com/chaoses-ib/ntwin32","last_synced_at":"2025-10-04T11:58:33.310Z","repository":{"id":111896735,"uuid":"541178960","full_name":"Chaoses-Ib/NtWin32","owner":"Chaoses-Ib","description":"Use the Win32 subsystem API while depending only on Ntdll.dll","archived":false,"fork":false,"pushed_at":"2022-09-26T14:28:05.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T23:02:02.539Z","etag":null,"topics":["kernel32","ntdll","win32","win32api","windows"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chaoses-Ib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-25T13:23:07.000Z","updated_at":"2025-01-20T19:06:08.000Z","dependencies_parsed_at":"2023-05-12T23:45:45.555Z","dependency_job_id":null,"html_url":"https://github.com/Chaoses-Ib/NtWin32","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chaoses-Ib/NtWin32","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaoses-Ib%2FNtWin32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaoses-Ib%2FNtWin32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaoses-Ib%2FNtWin32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaoses-Ib%2FNtWin32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chaoses-Ib","download_url":"https://codeload.github.com/Chaoses-Ib/NtWin32/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaoses-Ib%2FNtWin32/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308622,"owners_count":25965654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kernel32","ntdll","win32","win32api","windows"],"created_at":"2024-11-18T03:15:47.005Z","updated_at":"2025-10-04T11:58:33.273Z","avatar_url":"https://github.com/Chaoses-Ib.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NtWin32\nUse the Win32 subsystem API while depending only on Ntdll.dll.\n\n## Example\nexample.cpp:\n```cpp\n#include \u003cNtWin32/Windows.h\u003e\n\nint main() {\n    SetLastError(123);\n    DWORD error = GetLastError();\n}\n```\n\nCMake:\n```cmake\n# FetchContent_MakeAvailable requires CMake 3.14+\ncmake_minimum_required(VERSION 3.14)\n\nproject(example)\n\nFetchContent_Declare(\n    NtWin32\n    GIT_REPOSITORY https://github.com/Chaoses-Ib/NtWin32.git\n    # It is recommanded to specify a version instead of using the main branch\n    GIT_TAG        main\n)\nFetchContent_MakeAvailable(NtWin32)\n\n# Disable runtime error checks\nstring(REGEX REPLACE \"/RTC[^ ]*\" \"\" CMAKE_CXX_FLAGS_DEBUG \"${CMAKE_CXX_FLAGS_DEBUG}\")\n\nset(CMAKE_C_STANDARD_LIBRARIES \"ntdll.lib\" CACHE STRING \"Libraries linked into every executable and shared library linked for C.\" FORCE)\nset(CMAKE_CXX_STANDARD_LIBRARIES \"ntdll.lib\" CACHE STRING \"Libraries linked into every executable and shared library linked for C++.\" FORCE)\n\nadd_executable(example example.cpp)\ntarget_link_options(example PRIVATE /NODEFAULTLIB /ENTRY:main)\ntarget_link_libraries(example PRIVATE NtWin32)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaoses-ib%2Fntwin32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaoses-ib%2Fntwin32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaoses-ib%2Fntwin32/lists"}