1

Topic: Time switching-on and computer shut-down

Where and as it is possible to learn time on and off the computer. So that it was possible to catch this moment with the help  and to write down the file is admissible in a broad gull.

2

Re: Time switching-on and computer shut-down

That is the user included or ungeared the PC, instead of with the help  it to do.

3

Re: Time switching-on and computer shut-down

Shut-down is not always caught... And switching-on can be seen in system log (as well as normal shut-down).

4

Re: Time switching-on and computer shut-down

kamero wrote:

Where and as it is possible to learn time on and off the computer. So that it was possible to catch this moment with the help  and to write down the file is admissible in a broad gull.

it is impossible to learn Time of shut-down of the computer, for it is still switched on. And when it is ungeared - too it is impossible.
Remaining - search in Google, what registry key.

5

Re: Time switching-on and computer shut-down

YuRock;
Well and it is admissible, here ungeared it and at next run it is possible to learn when it has been ungeared?

6

Re: Time switching-on and computer shut-down

kamero wrote:

YuRock;
Well and it is admissible, here ungeared it and at next run it is possible to learn when it has been ungeared?

Then yes - there is a system log, above told. As it to read program - I will not prompt. Too, I think, it is possible to find in Google.

7

Re: Time switching-on and computer shut-down

And it is possible as that in  to catch this moment without log?! Because application will hang most likely as service (well yet did not solve still). And to catch already when it it is launched () it is possible I think, and here  fulfills at shut-down or not?

8

Re: Time switching-on and computer shut-down

kamero wrote:

And it is possible as that in  to catch this moment without log?! Because application will hang most likely as service (well yet did not solve still). And to catch already when it it is launched () it is possible I think, and here  fulfills at shut-down or not?

For what? Why does not arrange system log? Before correct shut-down applications, including services should stop correctly.

9

Re: Time switching-on and computer shut-down

goldmi45;
So if at the moment of shut-down I cannot learn time?)

10

Re: Time switching-on and computer shut-down

kamero;
The moment of a stop of service <> time to computer shut-down.

11

Re: Time switching-on and computer shut-down

11/15/2017 9:37, kamero writes:
>  fulfills at shut-down or not?
If I ungear a computer the button on the pilot - absolutely precisely does not fulfill wink.

12

Re: Time switching-on and computer shut-down

Dim2000 wrote:

11/15/2017 9:37, kamero writes:
>  fulfills at shut-down or not?
If I ungear a computer the button on the pilot - absolutely precisely does not fulfill wink.

But time of shut-down of system even in this case will be written down in the event log during system next run.
: it is not clear that the HARDWARE wanted.

13

Re: Time switching-on and computer shut-down

To look events 6005 6006 6008

14

Re: Time switching-on and computer shut-down

kamero wrote:

And it is possible as that in  to catch this moment without log?! Because application will hang most likely as service (well yet did not solve still). And to catch already when it it is launched () it is possible I think, and here  fulfills at shut-down or not?

RTFM: CTRL_SHUTDOWN_EVENT
https://docs.microsoft.com/en-us/window … lerroutine

15

Re: Time switching-on and computer shut-down

"Shut-down" too a miscellaneous happens. Not only a fork from the socket, but also hibernation with the subsequent recovery.

16

Re: Time switching-on and computer shut-down

It is more reliable to install current time somewhere program periodically. For example - once a second to write to a file (or the register) current time. Then at switching-on it will be visible, when there was a last record, it and will be approximately shut-down time. However, such approach eats resources. But if it is necessary - that is admissible. Another matter - that the program (that service that ) can simply ungear. But - with it it is possible to struggle separately. If it is necessary.