[#BloombergLP-bdls-ProcessUtil-getProcessName] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/ProcessUtil.adoc[ProcessUtil]::getProcessName :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bdls_processutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int getProcessName(xref:bsl/string.adoc[bsl::string]* result); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#