Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <windows.h>
#include <tlhelp32.h>
#include <stdio.h>
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
HANDLE hconsoleInput, hconsoleOutput;
char string[100];
DWORD written;
HANDLE hSnapShot;
PROCESSENTRY32 ProcEntry;
BOOL hRes;
AllocConsole();
hconsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);
hconsoleInput = GetStdHandle(STD_INPUT_HANDLE);
hSnapShot=CreateToolhelp32Snapshot(TH32CS_SNAPALL, NULL);
ProcEntry.dwSize = sizeof(ProcEntry);
Process32First(hSnapShot, &ProcEntry);
while(1)
{
hRes = Process32Next (hSnapShot, &ProcEntry);
if (hRes == FALSE)
break;
sprintf(string," %s %x\n",ProcEntry.szExeFile, ProcEntry.th32ProcessID);
WriteConsole(hconsoleOutput,string,strlen(string),&written,0);
}
ReadConsole(hconsoleInput,string,1,&written,0);
return (0);
}