Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

win32-fun

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

win32-fun - npm Package Compare versions

Comparing version
1.1.1
to
1.1.2
+1
-1
package.json
{
"name": "win32-fun",
"version": "1.1.1",
"version": "1.1.2",
"description": "disk memory information, put the monitor into sleep mode, wake up the monitor, set volume",

@@ -5,0 +5,0 @@ "repository": "https://github.com/sid-max1996/win32-fun",

@@ -5,2 +5,3 @@ #include "screen.h"

void ScreenSleep() {
// HWND_BROADCAST intead GetConsoleWindow() works too
SendMessage(GetConsoleWindow(), WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)2);

@@ -14,3 +15,3 @@ }

void PreventLockScreen() {
SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);
SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);
}

Sorry, the diff of this file is not supported yet