Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use C struct for accessing Windows APIs #134

Merged
merged 9 commits into from
Aug 6, 2015
Merged

Conversation

stanaka
Copy link
Contributor

@stanaka stanaka commented Aug 5, 2015

Using a pointer of Go struct as an argument of Windows API causes panic. To fix this, C struct should be used.

This pull request provides a helper method to retrieve a value with C struct of Windows API, and changes to use it, not to use methods with Go struct.

ref. lxn/win#12

@Songmu Songmu force-pushed the fix/windows-api-access branch from e72e5a0 to 3bb2e39 Compare August 6, 2015 02:28
@Songmu
Copy link
Contributor

Songmu commented Aug 6, 2015

Great!

Songmu added a commit that referenced this pull request Aug 6, 2015
use C struct for accessing Windows APIs
@Songmu Songmu merged commit b9dba8c into master Aug 6, 2015
@Songmu Songmu deleted the fix/windows-api-access branch August 6, 2015 03:05
@Sixeight Sixeight mentioned this pull request Aug 13, 2015
@mattn
Copy link
Contributor

mattn commented Aug 14, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants