Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStorage.GetAccessGrantedProcess method

Filter:

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

SolFSStorage     See also    

Overview

OPERATING SYSTEM EDITION
Returns information about the element in the "Access Granted" process list

APPLICATION EDITION
Not applicable

Declaration

[Pascal]
    procedure GetAccessGrantedProcess( Index : LongWord; var ProcessFileName : TSolFSString; var ProcessID : LongWord; var ChildProcesses : boolean; var DesiredAccess : TSolFSDesiredAccess );

    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif}; );

[Plain C]
    long _stdcall StorageGetProcessRestriction( unsigned long Storage, int Index, PStorageProcessRestriction ProcessRestriction );

[C++ (DLL/Lib)]
    void GetAccessGrantedProcess( int Index, PWideChar *ProcessFileName, unsigned long * ProcessID, bool * ChildProcesses, SolFSDesiredAccess *DesiredAccess );

[C++ (VCL)]
    void __fastcall GetAccessGrantedProcess( int Index, TSolFSString &ProcessFileName, unsigned long &ProcessID, bool &ChildProcesses, TSolFSDesiredAccess &DesiredAccess );

[C++ (.NET)]
    void GetAccessGrantedProcess( int Index, String* *ProcessFileName, unsigned long &ProcessID, bool &ChildProcesses, SolFSDesiredAccess &DesiredAccess );

[C#]
    void GetAccessGrantedProcess( int Index, ref string ProcessFileName, ref uint ProcessID, ref bool ChildProcesses, ref SolFSDesiredAccess DesiredAccess );

[VB.NET]
    Sub GetAccessGrantedProcess( ByVal Index As Integer, ByRef ProcessFileName As String, ByRef ProcessID As UInt32, ByRef ChildProcesses As Boolean, ByRef DesiredAccess As SolFSDesiredAccess )

[Java]
    not applicable;

Parameters

  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • Index - the index of the element in the list of processes.
  • ProcessFileName - the name of process executable file. Can be empty if the element was added using PID and not file name
  • ProcessID - the PID (process ID) of process. Can be 0 if the element was added using the name of the executable file.
  • ChildProcesses - specifies if access is allowed to children of the given process
  • DesiredAccess - specifies what kind of access (read, write, both) was allowed or forbidden for the given process

Values of SolFSDesiredAccess

Return value

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.

Description

Use this method to get information about the element of the list of processes, which are allowed to access the storage.

NOTE: Enable process restrictions by setting ProcessRestrictionsEnabled to true before calling this method.

[C++ (DLL/Lib)] Free the memory, allocated for ProcessFileName, by calling delete operator.

See also

ProcessRestrictionsEnabled     AddGrantedProcess     DeleteGrantedProcess     GetAccessDeniedProcess     GetAccessGrantedProcessCount    

Back to top