CallbackRegistry.GetOriginatorProcessName method


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackRegistry     See also    


Returns the name of the process that initiated the operation


    function GetOriginatorProcessName( var ProcessName : TCBString) : boolean;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    bool GetOriginatorProcessName( wchar_t * ProcessName, unsigned long * ProcessNameLength);

[C++ (VCL)]
    bool __fastcall GetOriginatorProcessName( TCBString & ProcessName);

[C++ (.NET)]
    bool GetOriginatorProcessName( String& ProcessName);

    bool GetOriginatorProcessName( ref String ProcessName);

    Function GetOriginatorProcessName( ByRef ProcessName As String) As Boolean


  • ProcessName - On return this parameter contains the name of the process.
  • [C++ (Lib)]ProcessNameLength - The length of the buffer to store the name of the process.

Return values

TRUE / true if the function succeeded or FALSE / false if the function failed.


Use GetOriginatorProcessName to get the name of the process that originated the operation.

Call this method only from the callback / event handlers.

[C++ (Lib)] Allocate the buffer for ProcessName in your code and pass the reference to the buffer via ProcessName parameter.

Call from...

This method may be called only from callback / event handlers.

See also

GetOriginatorProcessId method     GetOriginatorToken method