News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Does MASM support the WINAPI Process32First ?

Started by MtheK, April 18, 2014, 12:28:41 AM

Previous topic - Next topic

MtheK

  Found these:
http://masm32.com/board/index.php?topic=506.msg3912#msg3912
http://masm32.com/board/index.php?topic=926.msg8376#msg8376

  I tried Process32FirstW, which, I think, is UNICODE (I'm ANSI),
which is probably why I can't get past ERROR_BAD_LENGTH (18h)
using PROCESSENTRY32 (or many others) as the length.
Actually, any length I tried would all fail the same way.

  Fortunately, a la the other missing MASM command:

http://masm32.com/board/index.php?topic=2894.0

the dynamic CALL for Process32First&Next worked great,
allowing me to get my ParentPID for my task.

hutch--

Have a look at the example in the masm32 example code. \masm32\examples\enumerate\pid

ragdog

If you use the last release of Masm32 v11 must you update the Kernel32 lib

http://masm32.com/board/index.php?topic=506.msg3931#msg3931