Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjblack/win32cr
Crystal library for Win32 API
https://github.com/mjblack/win32cr
crystal crystal-lang crystal-language crystal-shard win32 win32api windows
Last synced: 6 days ago
JSON representation
Crystal library for Win32 API
- Host: GitHub
- URL: https://github.com/mjblack/win32cr
- Owner: mjblack
- License: mit
- Created: 2023-05-22T03:32:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-02T21:22:19.000Z (2 months ago)
- Last Synced: 2024-10-25T01:24:03.561Z (15 days ago)
- Topics: crystal, crystal-lang, crystal-language, crystal-shard, win32, win32api, windows
- Language: Crystal
- Homepage:
- Size: 8.71 MB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - win32cr - Bindings for Win32 API (C bindings)
README
# win32cr
[![CI](https://github.com/mjblack/win32cr/actions/workflows/crystal.yml/badge.svg)](https://github.com/mjblack/win32cr/actions/workflows/crystal.yml) [![Crystal Latest CI](https://github.com/mjblack/win32cr/actions/workflows/crystal_latest.yml/badge.svg)](https://github.com/mjblack/win32cr/actions/workflows/crystal_latest.yml)
Win32 library bindings created from Windows Metadata.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
win32cr:
github: mjblack/win32cr
```## Usage
```ruby
require "win32cr"
require "win32cr/ui/windowsandmessaging"LibWin32.MessageBoxW(nil, "Message Box Body".to_utf16, "Title".to_utf16, LibWin32::MESSAGEBOX_STYLE::MB_OK)
```## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## Contributors
- [Matthew J. Black](https://github.com/mjblack) - creator and maintainer