Discuss this help topic in CBFS Forum

CbFsHandleInfo class

Filter:

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

Overview

The class is a placeholder for user-defined information, valid for particular file or directory handle.

Declaration

[Pascal]
    TCbFsHandleInfo = class
      function GetCreatorProcessId();
      function GetCreatorProcessName();
      function GetCreatorThreadId();
      function GetCreatorToken();
      property UserContext : Pointer;
      property CreateDisposition : LongWord;
    end;

[C++ (Lib)]
    class CbFsHandleInfo
    {
      GetCreatorProcessId();
      GetCreatorProcessName();
      GetCreatorThreadId();
      GetCreatorToken();
        void* get_UserContext();
        void set_UserContext(void* Value);
        unsigned long get_CreateDisposition();
        void set_CreateDisposition(unsigned long Value);
    }

[C++ (VCL)]
    class TCbFsHandleInfo
    {
      GetCreatorProcessId();
      GetCreatorProcessName();
      GetCreatorThreadId();
      GetCreatorToken();
      __property void* UserContext;
      __property unsigned long CreateDisposition;
    }

[C++ (.NET)]
    ref class CbFsHandleInfo
    {
      GetCreatorProcessId();
      GetCreatorProcessName();
      GetCreatorThreadId();
      GetCreatorToken();
      property IntPtr UserContext;
      property UInt32 CreateDisposition;
    }

[C#]
    class CbFsHandleInfo
    {
      GetCreatorProcessId();
      GetCreatorProcessName();
      GetCreatorThreadId();
      GetCreatorToken();
      property IntPtr UserContext;
      property UInt32 CreateDisposition;
    }

[VB.NET]
    Class CbFsHandleInfo
      Function GetCreatorProcessId();
      Function GetCreatorProcessName();
      Function GetCreatorThreadId();
      Function GetCreatorToken();
      Property UserContext As IntPtr
      Property CreateDisposition As UInt32
    End Class

[Java]
    class CbFsHandleInfo
    {
      GetCreatorProcessId();
      GetCreatorProcessName();
      GetCreatorThreadId();
      GetCreatorToken();
      Object getUserContext();
      void setUserContext(Object value);
    }

Properties

  • UserContext - User-defined data which is available in event handlers / callbacks while the file handle is opened
  • CreateDisposition - The original value of CreateDisposition parameter, as passed in ZwCreateFile() API function, in NT format

Description

This class is used as a placeholder for various information related to the file or directory, which was opened by Callback File System. An instance of this class is passed as a parameter for various events which are used to perform file or directory operations. The application can use the information contained in this class to access the file or directory which it opened or created before.
Read more about contexts.

Discuss this help topic in CBFS Forum