Ignore:
Timestamp:
3/1/2010 12:29:44 PM (2 years ago)
Author:
lowjoel
Message:

Add the current working directory, Operating system (including Vista/7 edition and service pack), CPU count and running processes to the debug report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util/NativeMethods/Kernel.cs

    r1859 r1874  
    860860        public const int MaxPath = 260; 
    861861        public const int LongPath = 32768; 
     862 
     863        /// <summary> 
     864        /// Retrieves the product type for the operating system on the local computer, and 
     865        /// maps the type to the product types supported by the specified operating system. 
     866        /// </summary> 
     867        /// <param name="dwOSMajorVersion">The major version number of the operating system. 
     868        /// The minimum value is 6. 
     869        ///  
     870        /// The combination of the dwOSMajorVersion, dwOSMinorVersion, dwSpMajorVersion, 
     871        /// and dwSpMinorVersion parameters describes the maximum target operating system 
     872        /// version for the application. For example, Windows Vista and Windows Server 
     873        /// 2008 are version 6.0.0.0 and Windows 7 and Windows Server 2008 R2 are version 
     874        /// 6.1.0.0.</param> 
     875        /// <param name="dwOSMinorVersion">The minor version number of the operating 
     876        /// system. The minimum value is 0.</param> 
     877        /// <param name="dwSpMajorVersion">The major version number of the operating 
     878        /// system service pack. The minimum value is 0.</param> 
     879        /// <param name="dwSpMinorVersion">The minor version number of the operating 
     880        /// system service pack. The minimum value is 0.</param> 
     881        /// <param name="pdwReturnedProductType">The product type. This parameter 
     882        /// cannot be NULL. If the specified operating system is less than the 
     883        /// current operating system, this information is mapped to the types 
     884        /// supported by the specified operating system. If the specified operating 
     885        /// system is greater than the highest supported operating system, this 
     886        /// information is mapped to the types supported by the current operating system. 
     887        ///  
     888        /// If the product has not been activated and is no longer in the grace period, 
     889        /// this parameter is set to PRODUCT_UNLICENSED (0xABCDABCD).</param> 
     890        /// <returns>If the function succeeds, the return value is a nonzero value. 
     891        /// If the software license is invalid or expired, the function succeeds 
     892        /// but the pdwReturnedProductType parameter is set to PRODUCT_UNLICENSED. 
     893        ///  
     894        /// If the function fails, the return value is zero. This function fails if 
     895        /// one of the input parameters is invalid.</returns> 
     896        [DllImport("Kernel32.dll", CharSet = CharSet.Unicode)] 
     897        public static extern bool GetProductInfo(uint dwOSMajorVersion, 
     898            uint dwOSMinorVersion, uint dwSpMajorVersion, uint dwSpMinorVersion, 
     899            out WindowsEditions pdwReturnedProductType); 
     900 
    862901    } 
    863902} 
Note: See TracChangeset for help on using the changeset viewer.