Questions tagged [winmd]

39 questions
1
vote
1 answer

How to get an enumeration value when using IMetadataImport

Short version How to you get the numeric value associated with an enum from a *.winmd file when using IMetadataImport? A good example is ApplicationHighContrastAdjustment enumeration: //Windows.UI.Xaml.ApplicationContrastMode (@020000006) public…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
1
vote
1 answer

it is impossible to add winmd reference after update to VS2017 15.4.4

Desktop App Converter build no longer installs. I've been making desktop bridge apps over a year now. All has been well up until recently updating visual studio to 15.4.4. I checked the references and winmd has the yellow dot of death on it. Since…
David
  • 21
  • 1
1
vote
0 answers

Reflection with winmd file

I want to use the reflection process in my c# app with System.Reflection.Assembly.Load() My problem is I don't want to use it with a .DLL file but with a .winmd file (in my case Windows.winmd). Is it possible ?
A.Le Floch
  • 131
  • 1
  • 8
1
vote
0 answers

Can multiple applications access the same credential manager record?

I am using below code in AppOne to add a credential to Web Credentials in Windows Credential Manager. var vault = new Windows.Security.Credentials.PasswordVault(); vault.Add(new Windows.Security.Credentials.PasswordCredential("AAA", "user1",…
spspli
  • 3,128
  • 11
  • 48
  • 75
1
vote
1 answer

How to read results from Windows.Devices.Enumeration.DeviceInformation.FindAllAsync using await syntax?

My computer has a working smartcard reader that should be returned by the code snippet below: string selector = Windows.Devices.SmartCards.SmartCardReader.GetDeviceSelector(); Windows.Devices.Enumeration.DeviceInformationCollection devices = await…
Believe2014
  • 3,894
  • 2
  • 26
  • 46
1
vote
1 answer

Is it possible to read/write to registry in Windows Runtime Component

I'm developing a Windows 8.1 application. Is it possible to read from and write to registry from the Windows Runtime Component (.winmd)?
Lentyai
  • 968
  • 1
  • 10
  • 25
1
vote
1 answer

Build Windows Universal C# class library from command line

I am currently trying to build a Microsoft Runtime Component C# class library targeting Windows Phone 8.1, Windows app 8.1 and Windows 10 Universal app. To complete this introduction, my environment runs Windows 8.1 and I am using Visual Studio 2015…
1
vote
0 answers

Embed Windows.winmd into c# project and load as embedded resource?

I want to use the Windows Action Center Notifications in my desktop application without making it a Windows Store App, which I have successfully done, with my application, all DLLs are embedded as resources and not exposed outside the exe. I also…
Josh Menzel
  • 2,300
  • 4
  • 22
  • 31
1
vote
1 answer

Creating a Windows Runtime Component that uses Bing Maps

I am trying to create a Windows Runtime Component that uses Bing Maps. Since The Bing Maps libraries are WinMD based, I also need to create my own WinMD. Sadly, there seems to be a conflict betweem the VCLibs WinMD that is required by Bing Maps…
ftdube
  • 11
  • 1
1
vote
0 answers

LoadFrom and UnsafeLoadFrom fail when loading a winmd file

I am trying to load a .winmd file using Reflection in a C# 4.5 app (i'd like to read the metadata stored in it). When using Assembly.LoadFrom and Assembly.UnsafeLoadFrom, the assembly loading fails with an exception: Additional information: Could…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
1
vote
2 answers

Runtime attempts to look for exe/dll instead of the .winmd reference

I have an app that uses a referenced library. That library in turn references a .winmd library. Looking at the referenced library's IL, i can seee this reference: .assembly extern windowsruntime FlurryWin8SDK { .ver 0:9:0:0 } At runtime however,…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
0
votes
0 answers

Using C# UWP Winmd in a C++ UWP Project crashes unless compiling with UseDotNetNativeToolchain

We have a C# UWP winmd library (no DLL, winmd only) that will be used in a C++ UWP application project. The problem is that if I run the C++ application in Debug it crashes somewhere when trying to get the activation factory for the winmd. If we…
0
votes
1 answer

Are .winmd files required at run-time or just at build time

I have written a Windows App SDK based library using C++/WinRT. When I build that library, I get a dll with and an associated winmd file that describes the types stored in my dll. I then consume that library in a Windows App SDK based app project…
ackh
  • 1,648
  • 2
  • 18
  • 36
0
votes
0 answers

Add .winmd lib to Win32/C++ project - is it possible?

We have Win32/C++ project with Desktop Bridge and usual method adding .winmd (by add reference) library didn't works, so is there another path to do it?
Konstantin
  • 159
  • 7
0
votes
1 answer

Sharing generic code between UWP projects

I'm developing an UWP app via C#, that uses IBasicVideoEffect with IDirect3DSurface. As mentioned in documentation, I have created Windows Runtime Component (Universal Windows) project. But settings of effects are stored in some implementation of…
excommunicado
  • 287
  • 1
  • 10