/// <summary> /// Creates an application object. /// </summary> /// <param name="imageType">The image type of the application.</param> /// <param name="appType">The application's type.</param> /// <returns>The object representing the new application.</returns> public BcdObject CreateApplication(ApplicationImageType imageType, ApplicationType appType) { Guid obj = _store.CreateObject(Guid.NewGuid(), BcdObject.MakeApplicationType(imageType, appType)); return new BcdObject(_store, obj); }
internal static int MakeApplicationType(ApplicationImageType imageType, ApplicationType appType) { return(0x10000000 | (((int)imageType << 20) & 0x00F00000) | ((int)appType & 0x0000FFFF)); }
internal static int MakeApplicationType(ApplicationImageType imageType, ApplicationType appType) { return 0x10000000 | (((int)imageType << 20) & 0x00F00000) | ((int)appType & 0x0000FFFF); }
/// <summary> /// Creates an application object. /// </summary> /// <param name="imageType">The image type of the application</param> /// <param name="appType">The application's type</param> /// <returns>The object representing the new application</returns> public BcdObject CreateApplication(ApplicationImageType imageType, ApplicationType appType) { Guid obj = _store.CreateObject(Guid.NewGuid(), BcdObject.MakeApplicationType(imageType, appType)); return(new BcdObject(_store, obj)); }