Using Win32 functions in Visual FoxPro Image Gallery
Performance Monitoring
..msdn
CreateToolhelp32Snapshot
EnumDeviceDrivers
EnumProcesses
EnumProcessModules
GetDeviceDriverBaseName
GetDeviceDriverFileName
GetModuleBaseName
GetModuleFileNameEx
GetPerformanceInfo
GetProcessMemoryInfo
Process32First
Process32Next
Code examples:
Enumerating Processes -- WinNT
EnumProcessModules
..msdn    Add comment     W32 Constants      Translate this page
The EnumProcessModules function retrieves a handle for each module in the specified process.
Code examples:
Enumerating Processes -- WinNT
Declaration:
BOOL EnumProcessModules(
  HANDLE hProcess,      // handle to process
  HMODULE *lphModule,   // array of module handles
  DWORD cb,             // size of array
  LPDWORD lpcbNeeded    // number of bytes required
);
FoxPro declaration:
DECLARE INTEGER EnumProcessModules IN psapi;
    INTEGER   hProcess,;
    STRING  @ lphModule,;
    INTEGER   cb,;
    INTEGER @ cbNeeded
Parameters:
hProcess
[in] Handle to the process.

lphModule
[out] Pointer to the array that receives the list of module handles.

cb
[in] Specifies the size, in bytes, of the lphModule array.

lpcbNeeded
[out] Receives the number of bytes required to store all module handles in the lphModule array.
Return value:
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
My comment:
Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Unsupported.
Word Index links for the EnumProcessModules :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-09 21:50:56
Modified: 2001-11-26 16:03:44
Visited in last 7 days: 28
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.167.250.64)
12 sec.Function: 'GetProfileString'
25 sec.Function: 'LocalAlloc'
38 sec.Function: 'FlashWindowEx'
52 sec.
Function group: 'Authorization'
1.07 min.Function: 'SCardIsValidContext'
1.27 min.Function: 'GetClipboardFormatName'
1.48 min.Function: 'FindFirstFile'
Function group: 'File Management'
1.68 min.Function: 'mixerGetID'
1.87 min.Function: 'GetTextCharacterExtra'
2.1 min.Function: 'SetHandleInformation'
Google
Advertise here!