Structures – ACCESS_LIST

typedef struct _ACCESS_LIST
{
ULONG32 Count;
PROGRAM_ACCESS list [1];
}ACCESS_LIST, *PACCESS_LIST;

Members:

  • Count : Number of port access masks
  • List : Port access masks array

Note: Access rights check is running in ascending order up to first mask match. Once the match is found according to Access status, VSPD grants or denies port access to application. The rest of masks will not be checked.

Note: Access is granted to all applications by default.

Code examples:

  1. Access to all applications is resolved, except “C:\Program Files\Windows NT\hypertrm.exe”:

    list [0].Mask = "C:\Program Files\Windows NT\hypertrm.exe"
    list [0].AccessState = false;

  2. Access is resolved only to “C:\Program Files\Windows NT\hypertrm.exe”:

    list [0].Mask = "C:\Program Files\Windows NT\hypertrm.exe"
    list [0].AccessState = true;
    list [1].Mask = "*"
    list [1].AccessState = false;