-
Notifications
You must be signed in to change notification settings - Fork 29
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 #495 from microsoft/pete-dev
Tons of documentation updates to bring most docs back up to level
- Loading branch information
Showing
123 changed files
with
1,030 additions
and
487 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Include> | ||
<?define SetupVersionName="Developer Preview 9 Arm64" ?> | ||
<?define SetupVersionNumber="1.0.2-preview-9.250118-2124" ?> | ||
<?define SetupVersionNumber="1.0.2-preview-9.250119-1653" ?> | ||
</Include> |
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
71 changes: 71 additions & 0 deletions
71
docs/developer-how-to/how-to-bootstrap-windows-midi-services.md
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,71 @@ | ||
--- | ||
layout: page | ||
title: Bootstrap Windows MIDI Services | ||
parent: Developer How-to | ||
has_children: false | ||
--- | ||
|
||
# How to bootstrap the SDK and Start the Service | ||
|
||
TODO: This document is a work-in-progress. | ||
|
||
The SDK is a central installation with a bootstrapper COM component. The COM component handles all WinRT activation for Windows MIDI Services without requiring the MIDI types to be included in any type of manifest (for desktop apps). Applications do not deploy anything except their own compiled code. | ||
|
||
Individual applications do not deploy the SDK with their binaries. The C# projection in the NuGet package contains everything a C# application needs. For C++, the NuGet package includes a .hpp file with the required implementation. | ||
|
||
## Examples | ||
|
||
```cpp | ||
// MTA by default | ||
winrt::init_apartment(); | ||
|
||
// this is the initializer in the bootstrapper hpp file | ||
std::shared_ptr<init::MidiDesktopAppSdkInitializer> initializer = std::make_shared<init::MidiDesktopAppSdkInitializer>(); | ||
|
||
// you can, of course, use guard macros instead of this check | ||
if (initializer != nullptr) | ||
{ | ||
if (!initializer->InitializeSdkRuntime()) | ||
{ | ||
std::cout << "Could not initialize SDK runtime" << std::endl; | ||
std::wcout << "Install the latest SDK runtime installer from " << initializer->LatestMidiAppSdkDownloadUrl << std::endl; | ||
return 1; | ||
} | ||
|
||
if (!initializer->EnsureServiceAvailable()) | ||
{ | ||
std::cout << "Could not demand-start the MIDI service" << std::endl; | ||
return 1; | ||
} | ||
} | ||
else | ||
{ | ||
// This shouldn't happen, but good to guard | ||
std::cout << "Unable to create initializer" << std::endl; | ||
return 1; | ||
} | ||
``` | ||
|
||
|
||
```csharp | ||
// the initializer implements the Dispose pattern, so will shut down WinRT type redirection when disposed | ||
using (var initializer = Microsoft.Windows.Devices.Midi2.Initialization.MidiDesktopAppSdkInitializer.Create()) | ||
{ | ||
// initialize SDK runtime | ||
if (!initializer.InitializeSdkRuntime()) | ||
{ | ||
Console.WriteLine("Failed to initialize SDK Runtime"); | ||
return 1; | ||
} | ||
|
||
// start the service | ||
if (!initializer.EnsureServiceAvailable()) | ||
{ | ||
Console.WriteLine("Failed to get service running"); | ||
return 1; | ||
} | ||
|
||
... | ||
|
||
} | ||
``` |
104 changes: 0 additions & 104 deletions
104
docs/developer-how-to/how-to-check-for-windows-midi-services.md
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.