Skip to content

Instantly share code, notes, and snippets.

View stefanschneider's full-sized avatar

Stefan Schneider stefanschneider

View GitHub Profile
type Win32_Process struct {
Name string
//SessionId uint32
}
func main() {
//runtime.GOMAXPROCS(3)
//C.createThreadWithMsgLoop()
// .net-sysversion project main.go
package main
// // importing C will increase the stack size. this is useful
// // if loading a .NET COM object, beacuse the CLR requires a larger stack
// #cgo LDFLAGS: -loleaut32
// #include "windows.h"
// #include "OleAuto.h"
import "C"