-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from reflectronic/imapi
Add Image Mastering API
- Loading branch information
Showing
216 changed files
with
14,483 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@../../settings.rsp | ||
@../../remap.rsp | ||
--file | ||
um-imapi.h | ||
--output | ||
../../../sources/Interop/Windows/um/imapi | ||
--test-output | ||
../../../tests/Interop/Windows/um/imapi | ||
--traverse | ||
C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/imapi.h | ||
--with-attribue | ||
MEDIA_FLAGS=Flags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um/imapi.h in the Windows SDK for Windows 10.0.19041.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <Windows.h> | ||
#include <imapi.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@../../settings.rsp | ||
@../../remap.rsp | ||
--exclude | ||
LIBID_IMAPILib2 | ||
--file | ||
um-imapi2.h | ||
--output | ||
../../../sources/Interop/Windows/um/imapi2 | ||
--test-output | ||
../../../tests/Interop/Windows/um/imapi2 | ||
--traverse | ||
C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/imapi2.h | ||
--with-attribute | ||
IMAPI_FORMAT2_DATA_MEDIA_STATE=Flags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um/imapi2.h in the Windows SDK for Windows 10.0.19041.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <Windows.h> | ||
#include <imapi2.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@../../settings.rsp | ||
@../../remap.rsp | ||
--file | ||
um-imapi2fs.h | ||
--output | ||
../../../sources/Interop/Windows/um/imapi2fs | ||
--test-output | ||
../../../tests/Interop/Windows/um/imapi2fs | ||
--traverse | ||
C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/imapi2fs.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.19041.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <Windows.h> | ||
#include <imapi2fs.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um/imapi.h in the Windows SDK for Windows 10.0.19041.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
[Guid("520CCA62-51A5-11D3-9144-00104BA11C5E")] | ||
[NativeTypeName("struct IDiscMaster : IUnknown")] | ||
public unsafe partial struct IDiscMaster | ||
{ | ||
public void** lpVtbl; | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int QueryInterface([NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("void **")] void** ppvObject) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, Guid*, void**, int>)(lpVtbl[0]))((IDiscMaster*)Unsafe.AsPointer(ref this), riid, ppvObject); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("ULONG")] | ||
public uint AddRef() | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, uint>)(lpVtbl[1]))((IDiscMaster*)Unsafe.AsPointer(ref this)); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("ULONG")] | ||
public uint Release() | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, uint>)(lpVtbl[2]))((IDiscMaster*)Unsafe.AsPointer(ref this)); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int Open() | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, int>)(lpVtbl[3]))((IDiscMaster*)Unsafe.AsPointer(ref this)); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int EnumDiscMasterFormats([NativeTypeName("IEnumDiscMasterFormats **")] IEnumDiscMasterFormats** ppEnum) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, IEnumDiscMasterFormats**, int>)(lpVtbl[4]))((IDiscMaster*)Unsafe.AsPointer(ref this), ppEnum); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int GetActiveDiscMasterFormat([NativeTypeName("LPIID")] Guid* lpiid) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, Guid*, int>)(lpVtbl[5]))((IDiscMaster*)Unsafe.AsPointer(ref this), lpiid); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int SetActiveDiscMasterFormat([NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("void **")] void** ppUnk) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, Guid*, void**, int>)(lpVtbl[6]))((IDiscMaster*)Unsafe.AsPointer(ref this), riid, ppUnk); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int EnumDiscRecorders([NativeTypeName("IEnumDiscRecorders **")] IEnumDiscRecorders** ppEnum) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, IEnumDiscRecorders**, int>)(lpVtbl[7]))((IDiscMaster*)Unsafe.AsPointer(ref this), ppEnum); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int GetActiveDiscRecorder([NativeTypeName("IDiscRecorder **")] IDiscRecorder** ppRecorder) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, IDiscRecorder**, int>)(lpVtbl[8]))((IDiscMaster*)Unsafe.AsPointer(ref this), ppRecorder); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int SetActiveDiscRecorder([NativeTypeName("IDiscRecorder *")] IDiscRecorder* pRecorder) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, IDiscRecorder*, int>)(lpVtbl[9]))((IDiscMaster*)Unsafe.AsPointer(ref this), pRecorder); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int ClearFormatContent() | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, int>)(lpVtbl[10]))((IDiscMaster*)Unsafe.AsPointer(ref this)); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int ProgressAdvise([NativeTypeName("IDiscMasterProgressEvents *")] IDiscMasterProgressEvents* pEvents, [NativeTypeName("UINT_PTR *")] nuint* pvCookie) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, IDiscMasterProgressEvents*, nuint*, int>)(lpVtbl[11]))((IDiscMaster*)Unsafe.AsPointer(ref this), pEvents, pvCookie); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int ProgressUnadvise([NativeTypeName("UINT_PTR")] nuint vCookie) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, nuint, int>)(lpVtbl[12]))((IDiscMaster*)Unsafe.AsPointer(ref this), vCookie); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int RecordDisc([NativeTypeName("boolean")] byte bSimulate, [NativeTypeName("boolean")] byte bEjectAfterBurn) | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, byte, byte, int>)(lpVtbl[13]))((IDiscMaster*)Unsafe.AsPointer(ref this), bSimulate, bEjectAfterBurn); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
[return: NativeTypeName("HRESULT")] | ||
public int Close() | ||
{ | ||
return ((delegate* unmanaged<IDiscMaster*, int>)(lpVtbl[14]))((IDiscMaster*)Unsafe.AsPointer(ref this)); | ||
} | ||
} | ||
} |
Oops, something went wrong.