25#ifndef __PROCESSINFO_H__
26#define __PROCESSINFO_H__
29#include <Safir/Utilities/Internal/VisibilityHelpers.h>
31#ifdef lluf_utils_EXPORTS
32# define LLUF_UTILS_API SAFIR_HELPER_DLL_EXPORT
34# define LLUF_UTILS_API SAFIR_HELPER_DLL_IMPORT
35# define SAFIR_LIBRARY_NAME "lluf_utils"
36# include <Safir/Utilities/Internal/AutoLink.h>
38#define LLUF_UTILS_LOCAL SAFIR_HELPER_DLL_LOCAL
42#if defined(linux) || defined(__linux) || defined(__linux__)
43# include <sys/types.h>
44#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
47# error You need to get hold of pid_t for this platform
52#pragma warning(disable: 4275)
#define LLUF_UTILS_API
Definition DynamicLibraryLoader.h:33
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
Definition ProcessInfo.h:60
~ProcessInfo()
Destructor.
static pid_t GetPid()
Returns the pid of the current process.
const std::string GetProcessName() const
This method will probably return argv[0] of the process.
static const std::string GetProcessDescription()
This method will probably return the command line used to start the current process.
ProcessInfo(const pid_t pid)
Create a ProcessInfo object for a specific process.