예제 #1
0
        // GetPerformanceMode() -> u32
        public ResultCode GetPerformanceMode(ServiceCtx context)
        {
            Apm.PerformanceMode mode = context.Device.System.State.DockedMode
                ? Apm.PerformanceMode.Docked
                : Apm.PerformanceMode.Handheld;

            context.ResponseData.Write((int)mode);

            return(ResultCode.Success);
        }
예제 #2
0
        public long GetPerformanceMode(ServiceCtx Context)
        {
            Apm.PerformanceMode Mode = Context.Device.System.State.DockedMode
                ? Apm.PerformanceMode.Docked
                : Apm.PerformanceMode.Handheld;

            Context.ResponseData.Write((int)Mode);

            return(0);
        }