CallbackRegistry.GetOriginatorProcessName method

Filter:

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

CallbackRegistry     See also    

Overview

Returns the name of the process that initiated the operation

Declaration

[Pascal]
    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);

[C#]
    bool GetOriginatorProcessName( ref String ProcessName);

[VB.NET]
    Function GetOriginatorProcessName( ByRef ProcessName As String) As Boolean

Parameters

  • 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.

Description

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