Hook running programm..

Wohl das A & O in der Windows-Programmierung

Moderatoren: crack, Krüsty, Marwin

Antworten
Ignat
Alter Hase
Beiträge: 80
Registriert: Samstag 2. August 2003, 11:13
Kontaktdaten:

Beitrag von Ignat » Samstag 6. Dezember 2003, 23:14

Hi, everybody!
I need help!
How to make such system-hook: when you start some programm you make something operations..
I mean I want to hook event, when programm starts, and, for example, try to forbid running this programm.
Hm.. May be you know another way to forbid running some applications. The application may not have registry settings - just .EXE. I want to forbid running some EXE-files from my own programm..
Can you help me?
If the ship don't know where to go - it has no fair wind...

CDW
Alter Hase
Beiträge: 62
Registriert: Donnerstag 2. Oktober 2003, 17:17
Kontaktdaten:

Beitrag von CDW » Sonntag 7. Dezember 2003, 17:49

hm, here is some code to take a snapshot of all runnig progs:

Code: Alles auswählen

 invoke	CreateToolhelp32Snapshot, TH32CS_SNAPPROCESS, 0	
  mov hSnapshot,eax
  .if eax!=-1 
  	mov uProcess.dwSize, sizeof uProcess
  	
  	invoke	Process32First, eax, ADDR uProcess
    
  	.while eax
    lea edi,[uProcess.szExeFile]
    invoke SendDlgItemMessage,hWin,ID_PROGRAM_LIST,LB_ADDSTRING,0,edi
    invoke SendDlgItemMessage,hWin,ID_PROGRAM_LIST,LB_SETITEMDATA,eax,uProcess.th32ProcessID
    invoke	Process32Next, [hSnapshot], ADDR uProcess    
  	.endw	
i think you can search for names too (at the moment i dont have any WINAPI-References)
see msdn specially CreateToolhelp32Snapshot
PS: you can make a timer-procedure or thread so you check all 0.5-1 seconds for the "false" program

NBClif
Newbie
Beiträge: 1
Registriert: Dienstag 17. September 2019, 11:05

lecturer medical education first aid treatment for stroke victim

Beitrag von NBClif » Dienstag 17. September 2019, 11:08

Pith experts released supplemental guidelines as a replacement for blood pressure on Monday and that means millions more Americans choice conditions be diagnosed with favourable blood pressure. Anyone with blood affliction higher than 130/80 liking be considered to partake of hypertension, or exalted blood troubles, the American Enthusiasm Alliance and American College of Cardiology said in releasing their new intersection guidelines.Everyone, unruffled people who capture *(ICH SPAMME!!!)* without a doctor prescription with typical blood squeezing, should make their regimen and train to nourish blood inducement from effective up, the brand-new guidelines stress. Smoking and <a href="http://viagratrack.com/#">best price 100mg generic *(ICH SPAMME!!!)*</a> is a prime blood tension risk.
Updated: November 23, 2019 21:53
*(ICH SPAMME!!!)* available over counter spain *(ICH SPAMME!!!)* coupon

zessalay
Newbie
Beiträge: 1
Registriert: Sonntag 20. Oktober 2019, 05:26

healthcare for shop individual health insurance

Beitrag von zessalay » Sonntag 20. Oktober 2019, 05:35

Notwithstanding experienced men or those having puzzler in swallowing, this medicine is merely apt. http://canadianpharmacyrdx.com canada drugs pharmacy online is especially modified for antiquated period men. Another advantage is,medications Spoken Jelly do less gastric irritation than pills. online pet pharmacy comes in seven diverse flavors.

Antworten