winmd 1.0.0-pre.12 copy "winmd: ^1.0.0-pre.12" to clipboard
winmd: ^1.0.0-pre.12 copied to clipboard

outdated

A Dart library for working with Windows Metadata (winmd) formats.

example/main.dart

// Copyright (c) 2020, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// Parse the Windows Metadata for a WinRT type and generate a Dart wrapper

import 'package:winmd/winmd.dart';

void main() {
  // A Windows Runtime interface
  const typeToGenerate = 'Windows.Media.Playback.MediaPlayer';

  // Load the metadata for this interface
  final typeDef = MetadataStore.getMetadataForType(typeToGenerate)!;

  // Create a Dart projection
  print('$typeToGenerate contains the following methods:');

  for (final method in typeDef.methods) {
    print('  ${method.name}');
  }
}
8
likes
0
pub points
64%
popularity

Publisher

verified publisherhalildurmus.dev

A Dart library for working with Windows Metadata (winmd) formats.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi, win32

More

Packages that depend on winmd