zoukankan
html css js c++ java
让程序只能被运行一个实例
#include
<
windows.h
>
int
main(
int
argc,
char
*
argv[])
{
HANDLE hEvent
=
CreateEvent(NULL,
true
,
true
,
"
init
"
);
if
(hEvent)
{
if
(GetLastError()
==
ERROR_ALREADY_EXISTS)
{
printf(
"
Initance is running!\n
"
);
return
0
;
}
}
printf(
"
Hello World!\n
"
);
Sleep(
10000
);
return
0
;
}
查看全文
相关阅读:
SQL SEREVR IO
INTEL
windows performance
The DiskSpd Storage Performance Tool
machine Learning
NOSQL
X64 Deep Dive
Debugging and performance,ETW
Disk Performance
WCF transport-and-message-security
原文地址:https://www.cnblogs.com/ahuo/p/894096.html
最新文章
C#compiler
How to Acquire or Improve Debugging Skills
OS memory
db papers
TCP/IP
Roslyn
CLR Debug extention
ILRewrite && how to write a profiler
Rewrite MSIL Code on the Fly with the .NET Framework Profiling API
Interception c# code
热门文章
GC
Books
DB QO
C# JAVAMemory model
Books from Joe's blog
Disk performance
perfview
Parallel Programming AND Asynchronous Programming
joe_chang
Very very important SQL Server article
Copyright © 2011-2022 走看看