Questions tagged [imapi]

The Image Mastering Application Programming Interface, or IMAPI, is a component of Microsoft Windows operating system used for CD and DVD authoring and recording.

The Image Mastering Application Programming Interface, or IMAPI, is a component of Microsoft Windows operating system used for CD and DVD authoring and recording.

IMAPI provides the ability to create and burn single-session and multi-session discs, including bootable discs. It also provides low-level access to the burn engine for developing support for new devices, as well as access to extended recorder properties.

IMAPI was originally introduced with Windows XP. IMAPI version 2.0 was released with Windows Vista and Windows Server 2008. Current version of IMAPI supports Recordable Blu-ray Disc (BD-R) and Rewritable Blu-ray Disc (BD-RE) media.

More information is available on MSDN and Wikipedia.

33 questions
10
votes
3 answers

Available space on blank dvd / blu-ray discs (IMAPI)

Since my original question was a bit too vague, let me clarify. My goals are: to estimate blank disc size after selecting filesystem via IMAPI to estimate space which my file will consume on this disc if i burn it. What i would like to…
Nikita B
  • 3,303
  • 1
  • 23
  • 41
9
votes
2 answers

Is there a relatively straightforward way to finalize a CD or DVD in C# or PowerShell?

First, some clarification of terms. By finalize, I don't mean closing a session; I mean writing a lead-out to a CD or DVD in such a way that information can no longer be added to it via the usual means (Roxio, Nero, Windows Explorer, etc.) I've…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
8
votes
3 answers

Create ISO image using PowerShell: how to save IStream to file?

I want to create an ISO image, so a .iso file, on Windows. This is possible to do using COM component IMAPI2FS.MsftFileSystemImage, and I found instructions on how to do this using PowerShell in an MSDN blog post entitled "Writing optical discs…
6
votes
1 answer

MsftDiscFormat2Data Event Handler

I have successfully integrated IMAPI2 using Interop.cs into my application. I can burn CD/DVDs without any problem. However, the event handler for MsftDiscFormat2Data update does not work, so I can't get my progress bar moving. Here is the code I…
Mert Sevinc
  • 929
  • 1
  • 8
  • 25
6
votes
2 answers

CD Burning within an XBAP

I have an XBAP that needs to be able to burn cd's. When running from inside Visual Studio, everything works okay. However when running from a browser, the IMAPI dll reports that the environment is not supported as soon as it tries to access the…
Smully
  • 81
  • 2
5
votes
2 answers

IMAPI2 MsftFileSystemImage in .NET not releasing files when creating ISO

I succesfully create the ISO image, but I get 'file in use' IO errors trying to delete files in the rootFolderPath after returning from calling this Create method. Am I missing a Marshal.ReleaseComObject call? /// /// Create iso image from…
cwchilders
  • 51
  • 1
  • 3
4
votes
1 answer

Adding a stream to an ISO as a File

I am using the IMAPI2FS Image Mastering API in Windows, and I'm trying to figure out how to add a stream as a file to the file system image before I generate the ISO. var fsi = new…
hatboyzero
  • 1,929
  • 1
  • 21
  • 44
3
votes
2 answers

How to retrieve and set burn speed using IMAPI2?

Does anyone know how to set CD/DVD burn speed (e.g. 4x, 10x) using IMAPI2? Also, I first need to get the speeds supported by the media. How can I retrieve them?
d.Siva
  • 1,140
  • 3
  • 20
  • 42
3
votes
1 answer

finding uuid's/headers for imapi2 com objects or get __uuidof to work on mingw

I am trying to access imapi2 com objects from a mingw project. I was trying to follow a visual studio example. I found the imapi2 header files in Microsoft SDK 7.1, but they do not seem to have the uuid's. The example I saw was using __uuidof for…
user1404617
  • 585
  • 1
  • 5
  • 20
2
votes
1 answer

IMAPI2 How to burn an already created iso

I have read hackchina and codeproject examples but it seems I can not figure out how to burn an existing .iso file. The examples above show ways of making an .iso from a folder and then burning it. I want to be able to directly burn an iso…
sparky
  • 375
  • 6
  • 22
2
votes
1 answer

Can JNA be used for a complex Windows DLL like IMAPI

I've managed to get COM4J to use some functionality in the windows IMAPI (CD writing). However I've failed to get any of the calls that return SAFEARRAYs working, but this project doesn't appear to be currently active ... The DLL is usually in…
Mark
  • 23
  • 3
2
votes
1 answer

How to explicitly create a directory structure in ISO file created with IMAPI?

I have copied a program that writes an ISO file using the IMAPI. It seems to truncate directory names. For example, if I call this function: image.Root.AddTree("C:\\DIR\\SUBDIR", true); What I get in the ISO is: SUBDIR\file 1 SUBDIR\file 2 ... The…
Pierre
  • 4,114
  • 2
  • 34
  • 39
2
votes
1 answer

Is it possible to choose cd-writing mode in IMAPI interface?

I am using IMAPIv2 to burn CD/DVDs in my C# project. I realized that the interface burns in XA-format (Mode 2). I believe XA-format is mainly used for ISOs. A lot of examples about IMAPIv2 on the web uses the following method to demonstrate total…
Mert Sevinc
  • 929
  • 1
  • 8
  • 25
2
votes
1 answer

UWP and IMAPI or addressing CD-ROM Drive

I'm pretty certain that IMAPI isn't duplicated in the Universal Windows Platform (which seems like a bit of an oversight) but I need to write audio files to a CD-ROM drive. Is this even possible? Where can I find documentation?
Rich Bryant
  • 865
  • 10
  • 27
2
votes
2 answers

I get 6 as State result for a blank CD

I don't know why I get 6 as a result when I insert a blank media in my burner. To my understanding there is no 6 in the states of the enumeration of IMAPI_FORMAT2_DATA_MEDIA_STATE. Here is a link that contain this states and the example that I am…
habibhassani
  • 486
  • 1
  • 6
  • 15
1
2 3