RSC  0.16.0
Win32ProcessInfo.cpp File Reference
#include "ProcessInfo.h"
#include <windows.h>
#include <Lmcons.h>
#include <Psapi.h>
#include <stdexcept>
#include <boost/algorithm/string.hpp>
#include <boost/shared_array.hpp>
#include <boost/format.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/filetime_functions.hpp>
#include "Win32Common.h"
Include dependency graph for Win32ProcessInfo.cpp:

Go to the source code of this file.

Classes

struct  rsc::os::_UNICODE_STRING
 
struct  rsc::os::_PROCESS_BASIC_INFORMATION
 
class  rsc::os::DeleteHandle
 

Namespaces

 rsc
 
 rsc::os
 

Typedefs

typedef NTSTATUS(NTAPI * rsc::os::_NtQueryInformationProcess) (HANDLE ProcessHandle, DWORD ProcessInformationClass, PVOID ProcessInformation, DWORD ProcessInformationLength, PDWORD ReturnLength)
 
typedef struct rsc::os::_UNICODE_STRING rsc::os::UNICODE_STRING
 
typedef struct rsc::os::_UNICODE_STRINGrsc::os::PUNICODE_STRING
 
typedef struct rsc::os::_PROCESS_BASIC_INFORMATION rsc::os::PROCESS_BASIC_INFORMATION
 
typedef struct rsc::os::_PROCESS_BASIC_INFORMATIONrsc::os::PPROCESS_BASIC_INFORMATION
 

Functions

PID rsc::os::currentProcessId ()
 Return the id the current process. More...
 
std::string rsc::os::getProgramName (PID pid)
 Return the name of the program executed in the process designated by pid. More...
 
std::string rsc::os::currentProgramName ()
 Return the name of the program executed in the current process. More...
 
std::string rsc::os::getExecutablePath (PID pid)
 Return the absolute path of the executable file that is executed in the process designated by pid. More...
 
std::string rsc::os::currentExecutablePath ()
 Return the absolute path of the executable file that is executed in the current process. More...
 
PVOID rsc::os::GetPebAddress (boost::shared_ptr< void > processHandle)
 
std::vector< std::string > rsc::os::getCommandlineArguments (PID pid)
 Return the list of commandline arguments of the process designated by pid. More...
 
std::vector< std::string > rsc::os::currentCommandlineArguments ()
 Return the list of commandline arguments of the current process. More...
 
boost::posix_time::ptime rsc::os::getProcessStartTime (PID pid)
 Return the start time of the process designated by pid. More...
 
boost::posix_time::ptime rsc::os::currentProcessStartTime ()
 Return the start time of the current process. More...
 
std::string rsc::os::getExecutingUser (PID pid)
 Return login- or account-name of the user executing pid. More...
 
std::string rsc::os::currentExecutingUser ()
 Return the login- or account-name of the user executing the current process. More...