public void CHDK_ReadScriptMsg(out CHDK_ScriptMsgType type, out int subtype, out int script_id, out byte[] data)
        {
            SendCHDKCommand(CHDK_PTP_Command.PTP_CHDK_ReadScriptMsg, out data, 0);
            Ensure_PTP_RC_OK();

            type = (CHDK_ScriptMsgType) ptp.Param1;
            subtype = ptp.Param2;
            script_id = ptp.Param3;
        }
        public void CHDK_ReadScriptMsg(out CHDK_ScriptMsgType type, out int subtype, out int script_id, out byte[] data)
        {
            SendCHDKCommand(CHDK_PTP_Command.PTP_CHDK_ReadScriptMsg, out data, 0);
            Ensure_PTP_RC_OK();

            type      = (CHDK_ScriptMsgType)ptp.Param1;
            subtype   = ptp.Param2;
            script_id = ptp.Param3;
        }