{"library":"pywin32-ctypes","code":"import sys\nfrom win32ctypes.pywin32 import win32api\n\n# Equivalent to 'import win32api' from pywin32\n\n# Example: Load a library as a data file\ntry:\n    h_module = win32api.LoadLibraryEx(sys.executable, 0, win32api.LOAD_LIBRARY_AS_DATAFILE)\n    print(f\"Successfully loaded {sys.executable} as a data file. Handle: {h_module}\")\n    win32api.FreeLibrary(h_module)\n    print(\"Successfully freed the library.\")\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")","lang":"python","description":"This example demonstrates how to import and use `win32api` to load and free a library, mimicking typical `pywin32` usage for basic API calls.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}