SolFSStorage.GetAccessDeniedProcess method


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

SolFSStorage     See also    


Returns information about the element in the "Access Denied" process list

Not applicable


    procedure GetAccessDeniedProcess( 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 GetAccessDeniedProcess( int Index, PWideChar *ProcessFileName, unsigned long * ProcessID, bool * ChildProcesses, SolFSDesiredAccess *DesiredAccess );

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

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

    void GetAccessDeniedProcess( int Index, ref string ProcessFileName, ref uint ProcessID, ref bool ChildProcesses, ref SolFSDesiredAccess DesiredAccess );

    Sub GetAccessDeniedProcess( ByVal Index As Integer, ByRef ProcessFileName As String, ByRef ProcessID As UInt32, ByRef ChildProcesses As Boolean, ByRef DesiredAccess As SolFSDesiredAccess )

    not applicable;


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


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     AddDeniedProcess     DeleteDeniedProcess     GetAccessGrantedProcess     GetAccessDeniedProcessCount