### Install and Import go-win32api Source: https://github.com/zzl/go-win32api/blob/main/README.md Use these commands to add the package to your project and import the win32 module. ```bash go get github.com/zzl/go-win32api/v2 ``` ```go import "github.com/zzl/go-win32api/v2/win32" ``` -------------------------------- ### Define C Union Source: https://github.com/zzl/go-win32api/blob/main/README.md Example of a C union structure that is mapped to Go accessor methods. ```c union QWord { UINT64 WholeValue; struct { UINT32 LowPart; UINT32 HighPart; } Parts; }; ``` -------------------------------- ### Access and Set Union Fields in Go Source: https://github.com/zzl/go-win32api/blob/main/README.md Demonstrates using accessor methods to read and write union fields in Go. ```go var qw QWord var whole uint64 = qw.WholeValueVal() // or whole = *qw.WholeValue() var lowPart uint32 = qw.Parts().LowPart // Setting values: *qw.WholeValue() = 123 qw.Parts().LowPart = 4 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.