static Octoshock() { LibMednahawkDll.dll_Initialize(); FopenCallback = new LibMednahawkDll.t_FopenCallback(FopenCallbackProc); FcloseCallback = new LibMednahawkDll.t_FcloseCallback(FcloseCallbackProc); FopCallback = new LibMednahawkDll.t_FopCallback(FopCallbackProc); LibMednahawkDll.dll_SetPropPtr(LibMednahawkDll.eProp.SetPtr_FopenCallback, Marshal.GetFunctionPointerForDelegate(FopenCallback)); LibMednahawkDll.dll_SetPropPtr(LibMednahawkDll.eProp.SetPtr_FcloseCallback, Marshal.GetFunctionPointerForDelegate(FcloseCallback)); LibMednahawkDll.dll_SetPropPtr(LibMednahawkDll.eProp.SetPtr_FopCallback, Marshal.GetFunctionPointerForDelegate(FopCallback)); }