Retrieves the name of the process that initiated the operation.
String __fastcall GetOriginatorProcessName();
This method can be called within events fired for filesystem operations to retrieve the name of the process that initiated the operation. If the query fails, this method returns empty string.
Applications cannot use this method to retrieve information about remote processes accessing drives shared on the network. Windows does not provide such information due to the nature of remote access.
Note: This method can only be called within events, and must be called in the same thread that the event was originally fired on.