Discuss this help topic in CBFS Forum

CbFsHandleInfo.GetCreatorProcessName method

Filter:

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

CbFsHandleInfo     See also    

Overview

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

Declaration

[Pascal]
    function GetCreatorProcessName() : string;

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

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

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

[C#]
    string GetCreatorProcessName();

[VB.NET]
    Function GetCreatorProcessName() As String

[Java]
    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.

Description

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    

Discuss this help topic in CBFS Forum