microsoft / Detours

Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
MIT License
5.01k stars 979 forks source link

does Detours provides golang api ? #215

Closed heimao63531 closed 2 years ago

heimao63531 commented 2 years ago

Hi Detours team, i 'd love to use the Detours to hook winapi in goland. Does Detours support golang ? for example , i want to add hook to the enable network adapter api, how can i make it ? v, err := wmi.CallMethod(nil, "Win32_NetworkAdapter.DeviceID="+fmt.Sprint(adapter.Index), "Enable", nil)

sylveon commented 2 years ago

Use cgo