On Wednesday, 24 December 2014 at 12:53:06 UTC, JN wrote:
I know this is probably a theoretical exercise, but easier way
might be to execute tasklist and just grep the output.
study D,you should do some exercises.
I know this is probably a theoretical exercise, but easier way
might be to execute tasklist and just grep the output.
Today,I meet a question:get all processes names.
--C++ CODE-
#include stdafx.h
#include windows.h
#include stdio.h//C standard I/O
#include tlhelp32.h
int _tmain(int argc, _TCHAR* argv[])
{
HANDLE
hProcessSnap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
FrankLike via Digitalmars-d-learn píše v Út 23. 12. 2014 v 15:37 +:
Today,I meet a question:get all processes names.
--C++ CODE-
#include stdafx.h
#include windows.h
#include stdio.h//C standard I/O
#include tlhelp32.h
int _tmain(int argc, _TCHAR* argv[])
On Tue, 23 Dec 2014 15:37:12 +
FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
you will find the different:
D: PROCESSENTRY32* pe32 =
cast(PROCESSENTRY32*)GC.calloc(PROCESSENTRY32.sizeof);
C++:PROCESSENTRY32 pe32;
GC.calloc means: memset ?!
do you see
On Tuesday, 23 December 2014 at 20:22:12 UTC, ketmar via
Digitalmars-d-learn wrote:
On Tue, 23 Dec 2014 15:37:12 +
FrankLike via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com
wrote:
you will find the different:
D: PROCESSENTRY32* pe32 =
On Wed, 24 Dec 2014 00:24:44 +
FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
On Tuesday, 23 December 2014 at 20:22:12 UTC, ketmar via
Digitalmars-d-learn wrote:
On Tue, 23 Dec 2014 15:37:12 +
FrankLike via Digitalmars-d-learn