EnumProcessModules API fails with Vista (64 bit system)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sasie7679
    New Member
    • Dec 2006
    • 17

    EnumProcessModules API fails with Vista (64 bit system)

    Hi,

    We are using API calls for accessing process related information in visual basic 6.0(standard code as in Microsoft & other sites). We get the below mentioned error (using Err. LastDllError) while calling “EnumProcessMod ules” API in a 64 bit system with windows vista (mostly for 64 bit process ids. Ex: notepad.exe etc). If ”CreateToolhelp 32Snapshot” API is called, all the processes are listed. We would like to know whether any workaround or alternate solution is available for “EnumProcessMod ules” API. Also, is it advisable to use ”CreateToolhelp 32Snapshot” API for all operating systems?

    Error: “Only a part of the ReadProcessMemo ry- or WriteProcessMem ory…”

    Regards,
    Sasie
Working...