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 8957089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:54:28+00:00 2026-06-15T14:54:28+00:00

Is it possible to accidentally format the hard drive, damage the OS in some

  • 0

Is it possible to accidentally format the hard drive, damage the OS in some way when learning the Win32 API?

This question is an extension of the one asked here:

Can learning C or C++ be dangerous to my computer?

The reason I ask is as follows.

Stupidly, I created an array of HWNDs but looped outside of its boundaries. When I ran the program, I noticed that windows in other programs on my desktop had been closed.

I don’t believe I caused any damage to the computer or any other software, but cannot be sure.

Is this, or other form of mistake in Win32 API programming, dangerous to my computer/other software on the computer?

EDIT:
Apologies, when I say that windows in other programs had been closed, I should have said hidden, my loop was calling ShowWindow(…, SW_HIDE)

  • 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-15T14:54:29+00:00Added an answer on June 15, 2026 at 2:54 pm

    It’s pretty hard to do any real damage. You won’t accidentally format a drive. The API calls needed to do that are pretty tricky to use. You can’t call them successfully by accident.

    You could pretty easily delete a bunch of files from the machine. But you’d need to be writing code that calling functions like DeleteFile to do that. In any case, so long as you have UAC enabled, the system security won’t let you delete system files, or program files.

    I don’t think you need to worry unduly.

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

Sidebar

Related Questions

Possible Duplicate: Is it possible to decrypt md5 hashes? I accidentally encrypted some data
I accidentally deleted a SVN tag. Is it possible to recreate this tag easily
I accidentally pushed a commit to GitHub. Is it possible to remove this commit?
Possible Duplicate: Is it possible to execute PHP with extension file.php.jpg? I accidentally left
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Accidentally I may forget to describe some parameters or exception throwing (or something else)
Kind of a strange question, but here is my scenario: I have accidentally added
It's possible in C# to write things such way: Instrument instr = new Instrument

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.