I\'m in the process of writing a C# wrapper for Dallmeier Common API light (Camera & Surviellance systems) and I\'ve never written a wrapper before, but I have used the
However, C longs are (I believe) 32-bit, and map to C# ints.
Also, after calling the function, you must keep a managed reference to the delegate instance that you passed to make sure that the delegate doesn't get garbage collected.