Giter VIP home page Giter VIP logo

nop's Introduction

nop

Build status Download Latest Release GitHub license

a windows exe that does nothing without black cmd window or anything else

Compiles with mingw gcc with make command.

nop's People

Contributors

myfreeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nop's Issues

程序能不能后台持续运行

空程序能不能后台持续运行?
之前我写过

include <windows.h>

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在程序启动时鼠标都会转圈圈。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.