private void RegisterEventHandlers() { // Register OBJECT events m_edsObjectEventHandler = new EDSDKInvokes.EdsObjectEventHandler(objectEventHandler); uint result = EDSDKInvokes.SetObjectEventHandler( this.Handle, (uint)ObjectEvent.All, m_edsObjectEventHandler, IntPtr.Zero); ReturnValueManager.HandleFunctionReturnValue(result); }