/// <summary>
 /// Gets extended information about a package.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the OpenImageSession Function.</param>
 /// <param name="packagePath">An absolute path to a .cab file or to a folder containing an expanded package.</param>
 /// <returns>A <see cref="DismPackageInfo"/> object.</returns>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static DismPackageInfo GetPackageInfoByPath(DismSession session, string packagePath)
 {
     return(DismApi.GetPackageInfo(session, packagePath, DismPackageIdentifier.Path));
 }
 /// <summary>
 /// Gets extended information about a package.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the OpenImageSession Function.</param>
 /// <param name="packageName">The name of the package to get information about.</param>
 /// <returns>A <see cref="DismPackageInfo"/> object.</returns>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static DismPackageInfo GetPackageInfoByName(DismSession session, string packageName)
 {
     return(DismApi.GetPackageInfo(session, packageName, DismPackageIdentifier.Name));
 }