Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:40:52+00:00 2026-06-12T06:40:52+00:00

am trying to create a project that create a file, formatting it, create a

  • 0

am trying to create a project that create a file, formatting it, create a new partition and mount it, dismount it … in C++ with Qtcretor
I found that winapi offer several function help me to do that Format method of the Win32_Volume class and AddMountPoint method of the Win32_Volume class but there is no code example show how to use it I try with WMI C++ Application Examples but in vain

can any one put me on the way please?

Any help will be appreciated and thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:40:54+00:00Added an answer on June 12, 2026 at 6:40 am

    Using WMI should be done in Powershell scripts, not C++.

    If you’re already lost at the beginning, then just limit the use of C++ to CreateProcess() function call with the reference to some Powershell script.

    If you insist on writing everything in C++, then the MSDN docs should help you to use the WMI’s COM API. There are samples of C++ code. What you call “winapi classes” are really the COM interfaces with all the complications. I think you won’t get away by just copy’n’pasting some lines, since COM is not as intuitive as VBScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a distributable zip of my project that contains several configuration
I am trying to create nested routes for a project that has many boards.
I'm trying to create a project-like document, in that it contains subdocuments in a
I am trying to create a Project Template Wizard. For that I need a
I'm trying to create a new project using tomcat 7.0.27 + JSF 2.1.7 +
I'm trying to create a new project in NetBeans PHP from existing sources. When
I've been trying to create a new project using the files provided at ActionBarSherlock
I'm trying to create a quicksort implementation for a school project that sorts a
I am trying to create a .bat file that starts the ASP.NET Dev Server
I'm trying to create a setup project using WIX that will allow me to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.