Solid File System

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

SolFSStorage.AddDeniedProcess method

Filter:

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

SolFSStorage     See also    

Overview

OPERATING SYSTEM EDITION
Adds an element to the "Access Denied" process list

APPLICATION EDITION
Not applicable

Declaration

[Pascal]
    procedure AddDeniedProcess( const ProcessFileName : TSolFSString; ProcessID : LongWord; ChildProcesses : boolean; DesiredAccess : TSolFSDesiredAccess );

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

[Plain C]
Not available. See AddGrantedProcess() method description.

[C++ (DLL/Lib)]
    void AddDeniedProcess( const wchar_t* ProcessFileName, unsigned long ProcessID, bool ChildProcesses, SolFSDesiredAccess DesiredAccess );

[C++ (VCL)]
    void __fastcall AddDeniedProcess( TCBString ProcessFileName, unsigned long &ProcessID, bool ChildProcesses, TSolFSDesiredAccess DesiredAccess );

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

[C#]
    void AddDeniedProcess( String ProcessFileName, UInt32 ProcessID, bool ChildProcesses, SolFSDesiredAccess DesiredAccess );

[VB.NET]
    Sub AddDeniedProcess( ByVal ProcessFileName As String, ByVal ProcessID As UInt32, ByVal ChildProcesses As Boolean ByVal DesiredAccess As SolFSDesiredAccess )

[Java]
    not applicable;

Parameters

  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • ProcessFileName - the name of the process executable file (see description for details). Can be empty if the element is added for existing process by its PID
  • 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 forbidden to children of the given process
  • DesiredAccess - specifies what kind of access (read, write, both) is forbidden with this rule

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 add an element to the list of the processes, which are not allowed to access the storage. Use ProcessFileName to specify the name of the process, which has not been yet started.

You can specify either full path to the process name, or just a filename with extension. In the first case the specified name will be compared to the full path to the process being started. In the second case only file name will be compared to the file name of the process executable.

NOTE: Enable process restrictions by setting ProcessRestrictionsEnabled property to true before calling this method. The method may be called after the storage is opened (not before).

See also

ProcessRestrictionsEnabled     AddAccessGrantedProcess     DeleteDeniedProcess     DeleteDeniedProcessByIndex     GetAccessDeniedProcess     GetAccessDeniedProcessCount    

Back to top