winmd | driver allowing Windows to access MD RAID devices

 by   maharmstone C++ Version: v0.1 License: LGPL-3.0

kandi X-RAY | winmd Summary

kandi X-RAY | winmd Summary

winmd is a C++ library. winmd has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

WinMD is a driver allowing Windows to access MD RAID devices - software RAID volumes created by mdadm on Linux. Bear in mind that you will still need a filesystem driver: see, for instance, WinBtrfs and Ext2fsd. Everything here is released under the GNU Lesser General Public Licence (LGPL); see the file LICENCE for more info. You are encouraged to play about with the source code as you will, and I'd appreciate a note (mark@harmstone.com) if you come up with anything nifty.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              winmd has a low active ecosystem.
              It has 95 star(s) with 9 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of winmd is v0.1

            kandi-Quality Quality

              winmd has 0 bugs and 0 code smells.

            kandi-Security Security

              winmd has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              winmd code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              winmd is licensed under the LGPL-3.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              winmd releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of winmd
            Get all kandi verified functions for this library.

            winmd Key Features

            No Key Features are available at this moment for winmd.

            winmd Examples and Code Snippets

            No Code Snippets are available at this moment for winmd.

            Community Discussions

            QUESTION

            How cppwinrt.exe tool know which C++ version to use to generate the headers from .winmd files?
            Asked 2022-Mar-23 at 07:45

            I don't see any switch to specify the "C++ version" in the cppwinrt.exe tool !

            (my fundamental assumption is cppwinrt.exe tool binds the C++ 17 syntax to the ABI, I can't figure out how it can bind C++ 20 or future newer versions syntax )

            Similarly, the cswinrt.exe tool from C#/WinRT projection generates .cs files from .winmd files. The same question applies , How does the cswinrt.exe tool know which "C# version" to use to generate the .cs files ?

            I don't see any switch to specify the "C# version" in the cswinrt.exe tool either !

            end goal : is to understand how "language versions" fit in the WinRT language projections

            ...

            ANSWER

            Answered 2022-Mar-23 at 07:45

            The cppwinrt.exe tool doesn't allow you to specify a C++ language standard. It simply defaults to C++17, with the ability to opt-in to newer language features by way of feature test macros.

            The result is that the generated header files can be compiled with any C++17 compiler, or a compiler that supports a later language version.

            At this time (C++/WinRT version 2.0.210922.5) there are four C++20 features in use:

            • C++20 coroutines, guarded by an #ifdef __cpp_lib_coroutine directive (though that is really just deciding on whether to include the coroutine header file from the experimental/ directory or not; coroutines have been supported since VS 2015).
            • C++20 modules. This isn't guarded as clients need to explicitly opt-in to using winrt.ixx through an import declaration.
            • Support for C++20 ranges (introduced in 2.0.210329.4). This is an interesting one in that none of the code changes require a C++20 compiler. The feature simply lights up for clients using a C++20 compiler when they use the standard library header.
            • C++20 std::format (introduced in 2.0.210922.5), guarded by an #ifdef __cpp_lib_format directive.

            At a fundamental level, C++/WinRT is just a C++ library. As such it can employ any technique that's suitable to providing language-adaptive implementations.

            I don't know how C#/WinRT operates internally, nor C# for that matter, so I cannot comment on that.

            Source https://stackoverflow.com/questions/71576948

            QUESTION

            Scanning line by line with Windows.Media.Ocr engine
            Asked 2022-Jan-31 at 16:50

            I'm using Windows.Media.OCR engine to scan these two lines

            But the software scan them like that:

            While I'm expecting it to scan like:

            KIBA/USDT 0.00003826 6.31M KIBA 241.68459400 USDT

            KIBA/USDT 0.00003470 17.13M KIBA 594.48387000 USDT

            The code I'm using is:

            ...

            ANSWER

            Answered 2022-Jan-31 at 16:50

            I chose to act on the output string instead of tackling the OCR API.

            Fixing the issue within the OCR API would probably be a superior solution if possible, but I could not get your code properly referenced in my system.

            So you can add this function to transpose the string

            Source https://stackoverflow.com/questions/70581829

            QUESTION

            C++ compiler error MDM2009 Duplicate type found processing metadata file referencing 2 Windows Component Libraries that both reference another library
            Asked 2021-Nov-12 at 22:26

            My solution structure looks like this:

            The compiler complains that it finds duplicate types (of every public interface/class) in WCL1.winmd b/c that winmd file already exists in WCL4's bin directory.

            One problem is that I know absolutely nothing about C++ and the link offered in the Answer to this question provides a C++ workaround that doesn't help (it's literally like reading a different-but-related language -- i.e. reading German when I only know English).

            I also found this which provides another workaround but doesn't tell you where to put it. I added the specified ItemGroupDescription element into every .csproj file as well as the application's PropertySheet.props file to no avail.

            I have also done the following:

            • Moved the code from WCL2 into WCL3 and removed WCL2 from the solution.
            • Had the application reference WCL1, WCL3 and WCL4.

            Anyone else got any ideas? It would be greatly appreciated....

            UPDATE:

            Here's a link to a small solution that reproduces the compile errors. It seems that it comes from the Microsoft.Windows.CppWinRT NuGet package referenced by the C++ Application. That package auto-generates C++ header files from the .winmd files generated by the component projects referenced by the Application.

            ...

            ANSWER

            Answered 2021-Nov-12 at 22:26

            Well....it's not perfect but this is how I got around the problem...Add the following line to each ProjectReference in each Component .csproj file:

            I'm not sure what the intention of this particular Xml element was, but by setting Private=false, the compiler doesn't copy the InterfaceDefinitionComponent.winmd file into the other Components' bin directory which prevents the C++ compiler from seeing duplicate .winmd files and blowing up because it's trying to generate multiple identical C++ header files for the same Type.

            Source https://stackoverflow.com/questions/69922229

            QUESTION

            How to fix Docker error System.InvalidOperationException on start on Windows 10?
            Asked 2021-Oct-16 at 15:17

            I installed Docker desktop for windows 10 home (version 10.0.19042) but I was never able to make it work because I keep getting this error:

            Microsoft.NET framework is the latest version. When installing Docker I also let the box check to install all necessary WSL components. This is the error message from Docker:

            ...

            ANSWER

            Answered 2021-Oct-14 at 13:32

            look here https://github.com/docker/for-win/issues/9586

            it looks like some others had this problem

            Source https://stackoverflow.com/questions/69571532

            QUESTION

            Can you call from a C#/Winrt Component inside a base Win32 console template app (not WinForm/abstractions/wrappers or using the C++/Winrt template)?)
            Asked 2021-Sep-27 at 19:42

            I have an existing program win32 (x86) console app that needs to call managed code (C# from a .Net .dll). The .dll is not exposed to COM, but can be called from a C#/WinRT Component and referenced by C++/WinRT Console Template app, BUT I can't seem to call it from a win32 x86 console app even after installing the C++/WinRT NuGet package. I've built and ran this example but the consuming apps are always using the C++/WinRT template. When I try to reproduce the example with a base win32 app, I get the error REGDB_E_CLASSNOTREG Class not registered.

            I found another example showing how to consume a C++/WinRT component from a win32 app, without registering classes. I thought this was my answer. However the process involves going into the application manifest and specify activatable WinRT classes by referencing the outputted .dll file whenever the C++/WinRT component builds.

            Here's the problem: C#/WinRT components do not output a .dll file, only the .winmd.(see Edit) With the .winmd file, I can still reference the classes and build my project, But I end up with the same REGDB_E_CLASSNOTREG Class not registered error. I assume both the C++/WinRT and C#/WinRT components would compile into something that is in an Intermediate Language (see comments), but why does C++/WinRT output a .dll and a .winmd, while C#/WinRT only outputs .winmd files? I tried to use WinRT.Runtime.dll in place of the outputted .dll but that didnt work either.

            I'm at a loss. I posted another question about the difference between the C++/WinRT template vs win32 with C++/WinRT NuGet package.

            Main Problem: Can I use a C# .dll (not COM exposed) in a base win32 console app somehow?

            Edit

            I realized that I was using a C# Windows Runtime Component template that was specific to UWP. This might be why there was no outputted .dll when built.

            Following Simon's reply, I was able to create a C# WinRT component that can be called from a Win32 console app. This C# WinRT component DOES output a .dll as well as .winmd. I followed a bit closer to the article Simon posted about consuming with C++ and managed to get it to work with basic C# functions.

            ...

            ANSWER

            Answered 2021-Sep-25 at 10:19

            REGDB_E_CLASSNOTREG means the class that you ask for (whatever it is COM/WinRT etc.) is not registered/known to the activation system (hosted in combase.dll).

            The problem probably comes from the fact you're trying to use a registration-free WinRT component.

            Let's take this sample as a start for the C# component: Walkthrough: Create a C#/WinRT component and consume it from C++/WinRT. So, just create the C# component but don't create the C++/WinRT app. (I use Visual Studio 2019 and net5.0-windows10.0.19041.0).

            Note: C#/WinRT does produce a .dll (here SampleComponent.dll), not only metadata.

            If you don't build the C++/WinRT app, you still need to build a regular .h file to use the C# component. C++/WinRT does that for you, but since we don't use this tool, we must build it ourselves. For that, we need two other tools winmdidl.exe and midlrt.exe that you'll find from Developer Command Prompt for Visual Studio..See also How to: Use winmdidl.exe and midlrt.exe to create .h files from windows metadata

            So from the SampleComponent.winmd that you have if you followed the tutorial, run:

            Source https://stackoverflow.com/questions/69321376

            QUESTION

            .dll, .winmd can be read in Unity but not in XAML project
            Asked 2021-Jun-24 at 21:40

            I have a c++ .dll and .winmd from this solution. When I put them in a Plugin folder in Unity, build the Universal Windows project and deploy to the Hololens 2, the classes in the .dll and .winmd are recognized.

            If I create a Visual Studio Universal Windows XAML project, copy the .dll and .winmd to the project path and include the .winmd via Reference-Add, all the classes are there during editing (no errors thrown during editing and building). When I build the solution, the .dll is also copied to the build path. If I, however, deploy and run the code, the project throws the following exception:

            ...

            ANSWER

            Answered 2021-Jun-24 at 21:40

            Got it. The project above delivered a HoloLensForCV.winmd and a HoloLensForCV.dll and a opencv_world3411.dll. In addition to adding HoloLensForCV.winmd via Reference-Add (which copied HoloLensForCV.dll to the output directory), I needed to manually add opencv_world3411.dll to the solution via Add-Existing item (chose "Copy always").

            Source https://stackoverflow.com/questions/68110327

            QUESTION

            Team Foundation Server 2013 Build Failure / Builds Locally But Not on Server
            Asked 2021-Mar-09 at 18:34

            I have been using TFS 2013 for years. I have made no changes to the server. I recently added a project to my solution. (VS-2103 update five) As I updated the project I ran local builds with no problem. Tested the code in Dev and everything worked great. However, when I went to run a build in TFS I continue to receive a build failure. If I remove the project from the solution I can run a build in TFS with no problem. I have deleted / recreated the project, renamed it, recreated a build definition, rebooted both ends. It is getting hung up when I reference out to a DLL that is part of the solution. I pull out that reference and I can build via TFS no problem. Also note that the other 30 or so projects in the solution reference the same DLL and the same classes with no issue. Just this one project I added. But it builds locally???

            This is for a very legacy app that runs in a datacenter on its own server. TFS runs on its own server. No cloud involved. I am pretty much a one man show nearly end-to-end. All of the source code is on my workstation. Changes are passed up to the TFS server where the final builds are created. I installed TFS year ago... It has ran great for years until...

            Hoping someone can give me a clue...

            Some information from the Build Failure and the Log... cannot find the DLL that is part of the solution.

            Error Message - C:\Builds\1\MARCL Government Reporting\Development\src\DatabaseAccessMonitor\DBAccesMonitor_bll.vb (8): Type 'ESACR.GeneralMailer_bll' is not defined.

            Warning - C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "ESACR". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

            Warning - C:\Builds\1\MARCL Government Reporting\Development\src\DatabaseAccessMonitor\DBAccesMonitor_bll.vb (5): Namespace or type specified in the Imports 'ESACR.DataSetFilter' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

            Part of the log where you can see it cannot seem to find the ESACR.dll...

            3>PrepareForBuild: Creating directory "obj\Release". ResolveAssemblyReferences: Primary reference "ESACR". 3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ESACR". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Builds\1\MARCL Government Reporting\Development\src\DatabaseAccessMonitor\DatabaseAccessMonitor.vbproj] For SearchPath "{HintPathFromItem}". Considered "..\ESACR\bin\Release\ESACR.dll", but it didn't exist. For SearchPath "{TargetFrameworkDirectory}". Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2\ESACR.winmd", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2\ESACR.dll", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2\ESACR.exe", but it didn't exist.

            ...

            ANSWER

            Answered 2021-Mar-05 at 06:51

            Please try the following method to see if it can solve the problem:

            1. Open the project file (in your case should be .vbproj).
            2. Add the following object to the project.

            Source https://stackoverflow.com/questions/66485513

            QUESTION

            Visual Studio 2019 - Could not locate the assembly "Windows"
            Asked 2021-Feb-27 at 19:21

            I'm trying to use this PoshWinRT .NET/Powershell library, as described in this blog post, and this SO question. This worked for me before on Windows 7, but now I am on Windows 10 and since I've moved to a new computer I've cleared the assemblies cached during the build.

            The code uses several classes such as Windows.Foundation.IAsyncAction, which are failing because of a missing "Windows" assembly:

            CS0012 The type 'IAsyncAction' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'. PoshWinRT D:\projects\PoshWinRT\PoshWinRT\AsyncActionWrapper.cs 21

            As well as an error about that assembly:

            Could not resolve this reference. Could not locate the assembly "Windows". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

            In the right-hand Solution Explorer, the following properties are shown for the "Windows" dependency in my References list:

            The above .winmd has been deleted, but now I'm not sure how to re-add it. I've tried adding things like:

            ...

            ANSWER

            Answered 2021-Feb-27 at 19:21

            The windows.winmd is part of the Windows 10 SDK.

            You can find the file for the Buildnumber of your installed SDK under C:\Program Files (x86)\Windows Kits\10\

            Source https://stackoverflow.com/questions/66400422

            QUESTION

            bazel midl rule generated c++ header file and winmd file locates in different folder
            Asked 2020-Dec-26 at 23:23

            When I use bazel to generate c++ header source code and winmd file from midl file, I found MyType.winmd file is in output folder, while MyType.h locates at same directory as source code MyType.idl. What I want is that my generated header file locates at the same folder as MyType.winmd file.

            MyType.idl:

            ...

            ANSWER

            Answered 2020-Dec-25 at 18:22

            I don't see how the file can be outputted in the source directory with the sandboxing that bazel does.

            The only thing I can think of is that the midlCmd.bat has hardcoded the absolute path.

            The generator should be based on relative paths. If it needs a directory structure, the rule can provide ctx.configuration.genfiles_dir.path to the command line of the generator.

            Source https://stackoverflow.com/questions/65121191

            QUESTION

            React Native run-windows error microsoft.ui.xaml.winmd not found
            Asked 2020-Oct-11 at 17:07

            midlrt : error MIDL1001: [msg]cannot open input file [context]Error opening or processing WinMD d:\Desktop\projects\plenusbusiness\windows\packages\microsoft.ui.xaml.2.3.191129002\lib\uap10.0\microsoft.ui.xaml.winm d. HRESULT 0x80070003. [D:\Desktop\projects\Example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj] D:\Desktop\projects\Example\node_modules\react-native-windows\ReactUWP\Views\cppwinrt\AccessibilityAction.idl(1): error MIDL5157: [msg]An invalid winmd file was specified for import [context]: D:\Desktop\projects\Example\windows\packages\Microsoft.UI.Xaml.2.3.191129002\lib\uap10.0\Microsoft.UI.Xaml.winmd [D:\Desktop\projects\Example\node_modules\react-native-windows\Microsoft.ReactNative\Microsof t.ReactNative.vcxproj]

            ...

            ANSWER

            Answered 2020-Oct-04 at 17:26

            You should be able to fix the error by removing any spaces and special characters from your project's path and I think after this you have to use npm install again before building the project. This solution worked for me.

            Source https://stackoverflow.com/questions/64122907

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install winmd

            To install the driver, download and extract the latest release, right-click winmd.inf, and choose Install. The driver is signed, so should work out of the box on modern versions of Windows. For the very latest versions of Windows 10, Microsoft introduced more onerous requirements for signing, which are only available to corporations and not individuals. If this affects you (i.e. you get a signing error when trying to install the driver), try disabling Secure Boot in your BIOS settings. There's also a Chocolatey package available - if you have Chocolatey installed, try running choco install winmd.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/maharmstone/winmd.git

          • CLI

            gh repo clone maharmstone/winmd

          • sshUrl

            git@github.com:maharmstone/winmd.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular C++ Libraries

            tensorflow

            by tensorflow

            electron

            by electron

            terminal

            by microsoft

            bitcoin

            by bitcoin

            opencv

            by opencv

            Try Top Libraries by maharmstone

            btrfs

            by maharmstoneC

            quibble

            by maharmstoneC

            ntfs2btrfs

            by maharmstoneC++

            smbfs

            by maharmstoneC++

            wscpp

            by maharmstoneC++