[#BloombergLP-bdls-ProcessUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::ProcessUtil :relfileprefix: ../../ :mrdocs: This `struct` contains utility methods for platform‐independent process operations. == Synopsis Declared in `<bdls_processutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ProcessUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdls/ProcessUtil/getPathToExecutable.adoc[`getPathToExecutable`] | Set `*result` to a path with which the executable can be accessed (which may bear no relation to the command line used to begin this process). Return 0 on success, and a non‐zero value otherwise. On failure, `*result` will not be modified. Note that the returned value of `*result` may not correspond to the value of `argv[0]` passed to `main`. Some systems provide more reliable alternatives, such as through the "/proc" file system. | xref:BloombergLP/bdls/ProcessUtil/getProcessId.adoc[`getProcessId`] | Return the system specific process identifier for the currently running process. | xref:BloombergLP/bdls/ProcessUtil/getProcessName.adoc[`getProcessName`] | Load the system specific process name for the currently running process into the specified `*result`. Return 0 on success, and a non‐zero value otherwise. The language in which `*result` is provided is unspecified; `*result` will be encoded as UTF‐8, but might not be normalized. On failure, `*result` will be unmodified. Note that the primary purpose of this method is to provide an identifier for the current process, and `*result` may not be a valid path to the executable; to access the actual task file for the process use `getPathToExecutable` below. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#