CBHandleInfo.GetCreatorProcessName method


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

CBHandleInfo     See also    


Returns the name of the process, that opened the file handle


    function GetCreatorProcessName() : string;

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

[C++ (VCL)]
    string __fastcall GetCreatorProcessName();

[C++ (.NET)]
    string GetCreatorProcessName();

    string GetCreatorProcessName();

    Function GetCreatorProcessName() As String

    string getCreatorProcessName();

[C++ (Lib)] Parameters

  • ProcessName - On return this parameter contains the name of the process.
  • ProcessNameLength - The length of the buffer to store the name of the process.

Return values

The name of the process.


Use GetCreatorProcessName to get the name of the process that opened the file handle.

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

Network access
If you share the created virtual disk, you might want to get the name of the remote process, which accesses the virtual disk. Unfortunately Windows does not provide such information.

Call from...

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

See also

GetCreatorProcessId method     GetOriginatorProcessName method