Skip to content

Instantly share code, notes, and snippets.

@yizhang82
yizhang82 / imalloc.go
Created January 8, 2017 05:23
Sample go code to call COM code, using IMalloc/CoGetMalloc as an example
package main
import (
"fmt"
"log"
"syscall"
"unsafe"
)
type MallocVtbl struct {