Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Createtoolhelp32snapshot

Featured Replies

Posted

Does anyone have an asm example of how to use CreateToolhelp32Snapshot and ProcessFirst, ProcessNext etc?

Please, thanks :)

look in my oepfind

  • Author
look in my oepfind

human, ok thanks ;)

.const
PROCESS_HANDLE equ 0
PROCESS_ID equ 1.code
align 16
FindProcessByName proc uses ebx ecx edx esi edi _exename:dword,_returntype:dword
LOCAL Process :PROCESSENTRY32 lea esi,Process
assume esi:ptr PROCESSENTRY32 mov [esi].dwSize, sizeof PROCESSENTRY32 invoke CreateToolhelp32Snapshot,TH32CS_SNAPPROCESS,0
mov edi,eax invoke Process32First,edi,esi .while eax!=FALSE lea eax,[esi].szExeFile invoke lstrcmpi,eax,_exename .if eax==0
;---found process---
mov eax,[esi].th32ProcessID
jmp @return
.endif invoke Process32Next,edi,esi
.endw @return:
assume esi:nothing push eax
invoke CloseHandle,edi
pop eax .if _returntype==PROCESS_HANDLE
invoke OpenProcess,PROCESS_ALL_ACCESS,0,eax;return hProcess
.endif ret
FindProcessByName endp

Do you know pupe tool? It comes in a zip file with sources in asm, and of course that function appears there...

Get it here:
/>http://www.terra.es/personal/guillet/archivos/pupe2002.zip

Cheers

Nacho_dj

  • Author

Thanks much guys.

I also found a nice example on winasm forum called EzProcess. Very nicely done small tool. Check it out. =)

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.