![]() PmcProcMemCounter.QuotaPagedPoolUsage/1024. 0f ) ĬsTempStr.Format( _T( " Quota paged pool size: %.02lf KB" ), PmcProcMemCounter.QuotaNonPagedPoolUsage/1024. 0f ) ĬsTempStr.Format( _T( " Quota non paged pool size: %.02lf KB" ), PmcProcMemCounter.PeakWorkingSetSize/1024. 0f ) ĬsTempStr.Format( _T( " Peak working set size: %.02lf KB" ), PmcProcMemCounter.PeakPagefileUsage/1024. 0f ) ĬsTempStr.Format( _T( " Peak page file usage: %.02lf KB" ), M_ctvProcess.InsertItem( csTempStr, nIconIndex, nIconIndex, hPInfoItem ) ĬsTempStr.Format( _T( " Page file usage: %.02lf KB" ), HTREEITEM hPInfoItem = m_ctvProcess.InsertItem( _T( " Details" ),ĬsTempStr.Format( _T( " Page fault count: %lu" ), PROCESS_MEMORY_COUNTERS& pmcProcMemCounter = pstProcInfo->stpmcMemCounters M_ctvProcess.SetItemData( hItem, RCAST( DWORD, pstProcInfo )) HTREEITEM hItem = m_ctvProcess.InsertItem( csProc, 20, 20, hItemRoot ) PstProcInfo->csFullPath : pstProcInfo->csBaseName )), M_ToolBar.GetToolBarCtrl().IsButtonChecked( ID_OPTIONS_SHOWPATH ) Get full path display status, if checked then we will display full path const BOOL bFullPathChecked = GetModuleBaseName( hProcModule, hModules, szName, MAX_PATH ) GetModuleFileNameEx( hProcModule, hModules, szName, MAX_PATH ) HTREEITEM hItemRoot = m_ctvProcess.InsertItem( _T( " Process list" ), 60, 60 ) įor( DWORD dwIndex = 0 dwIndex dwProcId = dwProcIdentifiers Clear previous associated item data if anyĮnumProcesses( dwProcIdentifiers, sizeof( dwProcIdentifiers ), &dwSize ) Lookup that class for more information on these version functions and how to use them. There is a class called FileVersionInfo written for this purpose. VerQueryValue - Query for version components.GetFileVersionInfoSize - Size of version.GetFileVersionInfo - For extracting version.Docs give a detailed description of the searching process that takes place. SearchPath - Searches PATH environment variable.GetProcessTimes - To get the amount of time each process has taken, when did it start, how much kernel mode, and user mode time has it taken.GetDeviceDriverFileName - To get full path of a device driver.GetDeviceDriverBaseName - To get base name of a device driver.EnumDeviceDrivers - Process with id 4(System) is the process which loads up the drivers, so we use this function to enumerate through these device drivers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |