Skip to content

Commit

Permalink
v1.0.2-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-V-K committed Jan 20, 2022
1 parent 3e12691 commit 9cbe99f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
4 changes: 2 additions & 2 deletions LogonHoursService/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#define VERSION_MAJOR 1
#define VERSION_MINOR 0
#define VERSION_REV 1
#define VERSION_REV 2

#define VERSION_STRING "1.0.1 Alpha" VERSION_CONFIG
#define VERSION_STRING "1.0.2 Alpha" VERSION_CONFIG

#endif
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,27 @@ The project can also be built with older versions of VS after tuning the propert
3. As Administrator install the service by executing `LogonHoursService --install`.
4. Start the service manually.
5. Try setting time restrictions for a local user profile with a command like `net user USERNAME /time:M,12-13`.
6. Check whether the session of `USERNAME` is locked when the specified time is over (take a look into the service log in `C:\Windows\Temp\LogonHoursService.log`)
7. You can enable verbose logging by placing a file with name `LogonHoursService.exe.log4cpp` (into the directory with the executable) with the content like:
`log4cpp.rootCategory=DEBUG`
8. If everything works as expected, enable autostart for the service.
6. Check whether the session of `USERNAME` is locked when the specified time is over (take a look into the service log in `%windir%\Temp\LogonHoursService.log`)
7. If everything works as expected, enable autostart for the service.
## Troubleshooting
### Enable verbose logging
You can enable verbose logging by placing a file with name `LogonHoursService.exe.log4cpp` (into the directory with the executable) with the content like:
`log4cpp.rootCategory=DEBUG`
The application writes its log into `%TEMP%\LogonHoursService.log` (`%TEMP%` is `%windir%\Temp` for `Local System` account).
### Enable Local Dumps creation
Dump files (`.dmp`) are very useful when you need to investigate an occasional crash.
Add registry key `HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps` (refer to the article [Collecting User-Mode Dumps](https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps) for more details).
After local dumps are enabled, you will be able to find the dump under `%LOCALAPPDATA%\CrashDumps` next time the crash happens.
If you're running the service under `Local System` account, its dumps are generated under `%windir%\System32\config\systemprofile\AppData\Local\CrashDumps` or `%windir%\SysWOW64\config\systemprofile\AppData\Local\CrashDumps` (for 32-bit services on 64-bit system)
## Supported Windows versions
Expand All @@ -45,6 +62,10 @@ Though the built-in classic parental control is available in Windows 7/8.1, you
## History
### 1.0.2 Alpha (20.01.2022)
- [x] Fixed stack overflow caused by T2A/USES_CONVERSION macro
### 1.0.1 Alpha (10.12.2021)
- [x] Fixed calculation of remaining seconds for a session

0 comments on commit 9cbe99f

Please sign in to comment.