Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 17, 2015 19:14
import clr
clr.AddReferenceToFile('Callback.dll')
from Callback import *
from System import IntPtr
def callback(x):
x = True
return IntPtr(42)
test = Callback.MakeCallback(callback)
print test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment