Commit f8353de3 authored by David Kline (ANALOG)'s avatar David Kline (ANALOG)
Browse files

fix field sizes in DeviceProcessInfo

parent db3600b6
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
            /// Gets the process id (pid)
            /// </summary>
            [DataMember(Name = "ProcessId")]
            public int ProcessId { get; private set; }
            public uint ProcessId { get; private set; }

            /// <summary>
            /// Gets the user the process is running as. 
@@ -248,22 +248,22 @@ namespace Microsoft.Tools.WindowsDevicePortal
            public string PackageFullName { get; private set; }

            /// <summary>
            /// Gets the Page file usage info
            /// Gets the Page file usage info, in bytes
            /// </summary>
            [DataMember(Name = "PageFileUsage")]
            public uint PageFile { get; private set; }
            public ulong PageFile { get; private set; }

            /// <summary>
            /// Gets the working set size
            /// Gets the working set size, in bytes
            /// </summary>
            [DataMember(Name = "WorkingSetSize")]
            public uint WorkingSet { get; private set; }
            public ulong WorkingSet { get; private set; }

            /// <summary>
            /// Gets package working set
            /// Gets package working set, in bytes
            /// </summary>
            [DataMember(Name = "PrivateWorkingSet")]
            public double PrivateWorkingSet { get; private set; }
            public ulong PrivateWorkingSet { get; private set; }

            /// <summary>
            /// Gets session id
@@ -272,16 +272,16 @@ namespace Microsoft.Tools.WindowsDevicePortal
            public uint SessionId { get; private set; }

            /// <summary>
            /// Gets total commit in bytes
            /// Gets total commit, in bytes
            /// </summary>
            [DataMember(Name = "TotalCommit")]
            public double TotalCommit { get; private set; }
            public ulong TotalCommit { get; private set; }

            /// <summary>
            /// Gets virtual size in bytes
            /// Gets virtual size, in bytes
            /// </summary>
            [DataMember(Name = "VirtualSize")]
            public double VirtualSize { get; private set; }
            public ulong VirtualSize { get; private set; }

            /// <summary>
            /// Gets a value indicating whether or not the app is running 
+2 −2
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// <param name="appid">Application ID</param>
        /// <param name="packageName">The name of the application package.</param>
        /// <returns>Process identifier for the application instance.</returns>
        public async Task<int> LaunchApplicationAsync(
        public async Task<uint> LaunchApplicationAsync(
            string appid,
            string packageName)
        {
@@ -39,7 +39,7 @@ namespace Microsoft.Tools.WindowsDevicePortal

            RunningProcesses runningApps = await this.GetRunningProcessesAsync();

            int processId = 0;
            uint processId = 0;
            foreach (DeviceProcessInfo process in runningApps.Processes)    
            {
                if (string.Compare(process.PackageFullName, packageName) == 0)