a windows exe that does nothing without black cmd window or anything else
Compiles with mingw gcc with make
command.
a windows exe that does nothing without black cmd window or anything else
License: Apache License 2.0
空程序能不能后台持续运行?
之前我写过
int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
sleep(-1);
//GetMessage(NULL, NULL, 0, 0);
//SuspendThread(GetCurrentThread());
return 0;
}
之前公司的一个监控软件会定时检测有没特定进程,没有的话就弹窗balabala,于是我模拟了一个空进程。
当时想了好久,也许SuspendThread开销还小点,一起研究下吧。
细节上1. 空进程后台持续运行,cpu和内存的占用越少越好;2. 留意下进程启动时鼠标会不会转圈圈;现在不管用sleep还是SuspendThread在程序启动时鼠标都会转圈圈。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.