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

  • Home
  • SEARCH
  • 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 7167477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:35:06+00:00 2026-05-28T14:35:06+00:00

I have a hardware device running WinCE 5. Our app in compact framework. The

  • 0

I have a hardware device running WinCE 5.

Our app in compact framework.

The device is attached to a power supply which has a power switch.

Our app receives a signal when the power switch is turned to OFF. This allows us to elegantly finish our work, shut down our threads, and shut the device down.

Currently our shut down procedure also involves unmounting the SDIO card, to ensure that it is not corrupted.

We do NOT call any windows api as part of the final shutdown. We are able to signal our power micro “that all is ok, it can really take the power away now.”, which it then does.

Our key objective is to prevent corruption of any kind. For example, the windows registry does not sit on the SDIO card, but on an internal drive. We’ve not seen this exactly to my knowledge, but its a concern.

My question is:

  • what should we be doing during this process to elegantly shut down, from a windows perspective?
  • what API calls should be made to tell Windows its about to lose its power? (that still allow our app to run in order to control the power micro)
  • any other tips regarding this situation appreciated.

Thank you.

  • 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-05-28T14:35:06+00:00Added an answer on May 28, 2026 at 2:35 pm

    You should call a Suspend API (e.g. GwesPowerOffSystem()) and let the power manager do its job of calling each of the drivers through their power manager entry points. I’d even argue that, if possible, an interrupt from the loss of power should be handled by a driver which then starts the suspend process.

    An application should not be responsible for dealing with this.

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

Sidebar

Related Questions

I have a windows mobile device which is running windows CE 5.0. I want
I have a gui that needs to be updated from a hardware device attached
I have a program written in C#, running on a Windows CE device (on
I have a software-hardware related issue that I'm trying to troubleshoot. My app was
I have a .NET CF 1.1 application that has been running perfectly fine for
I have a rather large app which works in the simulator but creates in
We had an arcade/redemption game running on Win98, but hardware which can run it
I am developing an app which takes a preview of the device's camera and
I have a Linux device driver that interfaces to a device that, in theory,
I have been assigned a project in which I need to send commands 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.