Language

toolhelp

๐“›๐“พ๐“ฌ๐“ฎ๐“ฝ๐“ฎ_๐“ข๐“ฝ๐“ฎ๐“ต๐“ต๐“ช 2015. 9. 24.
728x90
๋ฐ˜์‘ํ˜•

#include <stdio.h>

#include <tchar.h>

#include<stdlib.h>

#include<windows.h>

#include<tlhelp32.h>


int _tmain(int argc, _TCHAR* argv[])

{



/* */

HANDLE hProcess = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);


PROCESSENTRY32 process;

process.dwSize = sizeof(PROCESSENTRY32);



_tprintf(_T("%32s %8s %8s %8s\n"), L"[NAME]", L"[PID]", L"[THREAD]", L"[PPID]");


while (Process32Next(hProcess, &process))

{

_tprintf(_T("%32s %8d %8d %8d\n"),

process.szExeFile,               // process name

process.th32ProcessID,            // process pid

process.cntThreads,               // process thread id

process.th32ParentProcessID         // process ppid

);

}



return 0;

}

728x90
๋ฐ˜์‘ํ˜•

'Language' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

md5 ํ•œ๋ฒˆ์— ์ธ์ฝ”๋”ฉํ•˜๊ธฐ :) ex)ํด๋”์ง€์ •  (0) 2016.12.18
rsa.py_ctf  (0) 2016.12.12
C์–ธ์–ด ์ •๋ฆฌ  (0) 2015.09.22
arp spoofing.c  (0) 2015.09.08
Mac Capture.c  (0) 2015.09.08

๋Œ“๊ธ€