Oggetti evento thread, processi e token

Questa pagina contiene voci di riferimento nella famiglia di API Oggetti eventi. Ogni voce include la dichiarazione e i requisiti.

Thread

EspCreateThreadReference

L'API EspCreateThreadReference crea un riferimento a un oggetto evento a un thread esistente. Ciò è utile nei casi in cui un client deve fare riferimento a un thread all'esterno del contesto di un evento che coinvolge il thread. Ad esempio, un client può richiedere un riferimento a un thread per eseguire query sulle proprietà o impostare chiavi di contesto dell'oggetto evento.

Syntax

HRESULT
WINAPI
EspCreateThreadReference(
    _In_ ESP_CLIENT Client,
    _In_ UINT32 ThreadId,
    _Out_ ESP_EVENT_OBJECT_REF* ObjectRef
    );

Parameters

Client

Fornisce il client.

ThreadId

Fornisce l'ID del thread.

ObjectRef

Riceve il riferimento. Il riferimento deve essere chiuso chiamando una volta EspCloseEventObjectReference che non è più necessario.

Valore restituito

Restituisce un oggetto HRESULT che indica il risultato dell'operazione. Usare SUCCEEDED o FAILED per testare il risultato.

Requirements

Requirement Value
Header espclient.h
DLL espclient.dll

Vedere anche

ESP_THREAD_CONFIG_FLAGS

L'enumerazione ESP_THREAD_CONFIG_FLAGS specifica i flag per una ESP_THREAD_CONFIG struttura.

Syntax

typedef enum ESP_THREAD_CONFIG_FLAGS
{
    ESP_THREAD_CONFIG_FLAGS_NONE                  = 0x00000000,
    ESP_THREAD_CONFIG_FLAGS_SKIP_IF_OBJECT_ABSENT = 0x00000001
} ESP_THREAD_CONFIG_FLAGS;

Values

VALORE DESCRIZIONE
ESP_THREAD_CONFIG_FLAGS_SKIP_IF_OBJECT_ABSENT Specifica di ignorare l'applicazione della configurazione se il thread non esiste. Ad esempio, se un client imposta questo flag per il thread richiedente di un'operazione di I/O e non esiste alcun thread richiedente, la configurazione del thread non verrà applicata.
Se il thread è assente, questo flag valuta in modo implicito il filtro del thread su true.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

ESP_THREAD_CONFIG

La struttura di configurazione per un oggetto evento thread è ESP_THREAD_CONFIG.

Syntax

typedef struct ESP_THREAD_CONFIG
{
    ESP_THREAD_CONFIG_FLAGS Flags;
    ESP_EVENT_OBJECT_CONFIG EventObjectConfig;

    UINT32 PropertiesCount;
    _Field_size_(PropertiesCount) const ESP_THREAD_PROPERTY_ID* Properties;

    ESP_TOKEN_CONFIG TokenConfig;
    ESP_PROCESS_CONFIG OwningProcessConfig;
} ESP_THREAD_CONFIG;

Members

FIELD DESCRIZIONE
Bandiere Specifica i flag per il thread.
EventObjectConfig Fornisce la configurazione dell'oggetto evento per il thread.
PropertiesCount Fornisce il numero di elementi nella matrice "Properties".
Proprietà Fornisce una matrice di proprietà del thread che devono essere acquisite per il thread.
TokenConfig Fornisce la configurazione per il token del thread.
OwningProcessConfig Fornisce la configurazione per il processo proprietario del thread. Equivale a IoThreadToProcess().

Requirements

Requirement Value
Header esptypes.h

Vedere anche

ESP_THREAD_INFO

La struttura ESP_THREAD_INFO specifica le informazioni per un thread. Questa struttura viene fornita come parte di una notifica degli eventi (una per ogni thread associato a un evento) e contiene vari dettagli sul thread.

Syntax

typedef struct ESP_THREAD_INFO
{
    ESP_EVENT_OBJECT_INFO ObjectInfo;
    _Maybenull_ const ESP_TOKEN_INFO* TokenInfo;
    _Maybenull_ const ESP_PROCESS_INFO* OwningProcessInfo;
} ESP_THREAD_INFO;

Members

FIELD DESCRIZIONE
ObjectInfo Specifica informazioni sull'oggetto evento del thread.
TokenInfo Specifica informazioni sul token del thread. Questo campo può essere Null se il client non ha specificato la configurazione del token tramite il campo "TokenConfig" in ESP_THREAD_CONFIG.
OwningProcessInfo Specifica informazioni sul processo proprietario del thread. Questo campo può essere Null se il client non ha specificato la configurazione del processo proprietario tramite il campo "OwningProcessConfig" in ESP_THREAD_CONFIG.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

Processo

EspCreateProcessReference

L'API EspCreateProcessReference crea un riferimento all'oggetto evento per un processo esistente. Ciò è utile nei casi in cui un client deve fare riferimento a un processo esterno al contesto di un evento che coinvolge il processo. Ad esempio, un client può richiedere un riferimento a un processo per eseguire query sulle proprietà o impostare chiavi di contesto dell'oggetto evento.

Syntax

HRESULT
WINAPI
EspCreateProcessReference(
    _In_ ESP_CLIENT Client,
    _In_ UINT32 ProcessId,
    _Out_ ESP_EVENT_OBJECT_REF* ObjectRef
    );

Parameters

Client

Fornisce il client.

ProcessId

Fornisce l'ID del processo.

ObjectRef

Riceve il riferimento. Il riferimento deve essere chiuso chiamando una volta EspCloseEventObjectReference che non è più necessario.

Valore restituito

Restituisce un oggetto HRESULT che indica il risultato dell'operazione. Usare SUCCEEDED o FAILED per testare il risultato.

Requirements

Requirement Value
Header espclient.h
DLL espclient.dll

Vedere anche

ESP_PROCESS_CONFIG_FLAGS

L'enumerazione ESP_PROCESS_CONFIG_FLAGS specifica i flag per una ESP_PROCESS_CONFIG struttura.

Syntax

typedef enum ESP_PROCESS_CONFIG_FLAGS
{
    ESP_PROCESS_CONFIG_FLAGS_NONE                              = 0x00000000,
    ESP_PROCESS_CONFIG_FLAGS_SKIP_IF_OBJECT_ABSENT             = 0x00000001,
    ESP_PROCESS_CONFIG_FLAGS_INCLUDE_EVENT_OBJECT_PARENT_CHAIN = 0x00000002,
    ESP_PROCESS_CONFIG_FLAGS_QUERY_PROPERTIES_PARENT_CHAIN     = 0x00000004,
    ESP_PROCESS_CONFIG_FLAGS_FILTER_MATCH_ANY_PARENT           = 0x00000008,
    ESP_PROCESS_CONFIG_FLAGS_FILTER_MATCH_ALL_PARENTS          = 0x00000010
} ESP_PROCESS_CONFIG_FLAGS;

Values

VALORE DESCRIZIONE
ESP_PROCESS_CONFIG_FLAGS_SKIP_IF_OBJECT_ABSENT Specifica di ignorare l'applicazione della configurazione se il processo non esiste. Ad esempio, se un client imposta questo flag per il processo del richiedente di un'operazione di I/O e non esiste alcun processo richiedente, la configurazione del processo non verrà applicata.
Se il processo è assente, questo flag valuta in modo implicito il filtro del processo su true.
ESP_PROCESS_CONFIG_FLAGS_INCLUDE_EVENT_OBJECT_PARENT_CHAIN Include l'oggetto evento per ogni processo nella catena padre nella notifica.
ESP_PROCESS_CONFIG_FLAGS_QUERY_PROPERTIES_PARENT_CHAIN Include la query delle proprietà del processo per ogni processo nella catena padre nella notifica.
ESP_PROCESS_CONFIG_FLAGS_FILTER_MATCH_ANY_PARENT Il filtro di processo specificato corrisponderà se corrisponde a questo processo o a qualsiasi processo nella catena padre. Questo flag non può essere impostato se è impostato il flag match-all-parents.
ESP_PROCESS_CONFIG_FLAGS_FILTER_MATCH_ALL_PARENTS Il filtro di processo specificato corrisponderà se corrisponde a questo processo e a ogni processo nella catena padre. Questo flag non può essere impostato se è impostato il flag match-any-parent.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

ESP_PROCESS_CONFIG

La struttura di configurazione per un oggetto evento di processo è ESP_PROCESS_CONFIG.

Syntax

typedef struct ESP_PROCESS_CONFIG
{
    ESP_PROCESS_CONFIG_FLAGS Flags;
    ESP_EVENT_OBJECT_CONFIG EventObjectConfig;

    UINT32 PropertiesCount;
    _Field_size_(PropertiesCount) const ESP_PROCESS_PROPERTY_ID* Properties;

    ESP_TOKEN_CONFIG TokenConfig;
    ESP_FILE_STREAM_CONFIG ImageFileConfig;
    const struct ESP_PROCESS_CONFIG* ParentProcessConfig;
} ESP_PROCESS_CONFIG;

Members

FIELD DESCRIZIONE
Bandiere Specifica i flag per il processo.
EventObjectConfig Fornisce la configurazione dell'oggetto evento per il processo.
PropertiesCount Fornisce il numero di elementi nella matrice "Properties".
Proprietà Fornisce una matrice di proprietà di processo che devono essere acquisite per il processo.
TokenConfig Fornisce la configurazione per il token del processo.
ImageFileConfig Fornisce la configurazione per il file di immagine del processo.
ParentProcessConfig Fornisce la configurazione per il processo padre.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

ESP_PROCESS_INFO

La struttura ESP_PROCESS_INFO specifica le informazioni per un processo. Questa struttura viene fornita come parte di una notifica degli eventi (una per ogni processo associato a un evento) e contiene vari dettagli sul processo.

Syntax

typedef struct ESP_PROCESS_INFO
{
    ESP_EVENT_OBJECT_INFO ObjectInfo;
    _Maybenull_ const ESP_TOKEN_INFO* TokenInfo;
    _Maybenull_ const ESP_FILE_STREAM_INFO* ImageFileInfo;
    _Maybenull_ const struct ESP_PROCESS_INFO* ParentProcessInfo;
} ESP_PROCESS_INFO;

Members

FIELD DESCRIZIONE
ObjectInfo Specifica informazioni sull'oggetto evento del processo.
TokenInfo Specifica informazioni sul token del thread. Questo campo può essere Null se il client non ha specificato la configurazione del token tramite il campo "TokenConfig" in ESP_PROCESS_CONFIG.
ImageFileInfo Specifica informazioni sul file di immagine del processo. Questo campo può essere Null se il client non ha specificato la configurazione del file di immagine tramite il campo "ImageFileConfig" in ESP_PROCESS_CONFIG.
ParentProcessInfo Specifica informazioni sul processo padre del processo. Questo campo può essere Null se il client non ha specificato la configurazione del processo padre tramite il campo "ParentProcessConfig" in ESP_PROCESS_CONFIG.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

Token

EspCreateThreadTokenReference

L'API EspCreateThreadTokenReference crea un riferimento a un oggetto evento al token di un thread esistente. Ciò è utile nei casi in cui un client deve fare riferimento al token di un thread all'esterno del contesto di un evento che coinvolge il token del thread. Ad esempio, un client può richiedere un riferimento al token di un thread per eseguire query sulle proprietà o impostare il contesto dell'oggetto evento.

Syntax

HRESULT
WINAPI
EspCreateThreadTokenReference(
    _In_ ESP_CLIENT Client,
    _In_ UINT32 ThreadId,
    _Out_ ESP_EVENT_OBJECT_REF* ObjectRef
    );

Parameters

Client

Fornisce il client.

ThreadId

Fornisce l'ID del thread.

ObjectRef

Riceve il riferimento. Il riferimento deve essere chiuso chiamando una volta EspCloseEventObjectReference che non è più necessario.

Valore restituito

Restituisce un oggetto HRESULT che indica il risultato dell'operazione. Usare SUCCEEDED o FAILED per testare il risultato.

Requirements

Requirement Value
Header espclient.h
DLL espclient.dll

Vedere anche

EspCreateProcessTokenReference

L'API EspCreateProcessTokenReference crea un riferimento a un oggetto evento al token di un processo esistente. Ciò è utile nei casi in cui un client deve fare riferimento al token di un processo all'esterno del contesto di un evento che coinvolge il token del processo. Ad esempio, un client può richiedere un riferimento al token di un processo per eseguire query sulle proprietà o impostare il contesto dell'oggetto evento.

Syntax

HRESULT
WINAPI
EspCreateProcessTokenReference(
    _In_ ESP_CLIENT Client,
    _In_ UINT32 ProcessId,
    _Out_ ESP_EVENT_OBJECT_REF* ObjectRef
    );

Parameters

Client

Fornisce il client.

ProcessId

Fornisce l'ID del processo.

ObjectRef

Riceve il riferimento. Il riferimento deve essere chiuso chiamando una volta EspCloseEventObjectReference che non è più necessario.

Valore restituito

Restituisce un oggetto HRESULT che indica il risultato dell'operazione. Usare SUCCEEDED o FAILED per testare il risultato.

Requirements

Requirement Value
Header espclient.h
DLL espclient.dll

Vedere anche

ESP_TOKEN_CONFIG_FLAGS

L'enumerazione ESP_TOKEN_CONFIG_FLAGS specifica i flag per una ESP_TOKEN_CONFIG struttura.

Syntax

typedef enum ESP_TOKEN_CONFIG_FLAGS
{
    ESP_TOKEN_CONFIG_FLAGS_NONE                  = 0x00000000,
    ESP_TOKEN_CONFIG_FLAGS_SKIP_IF_OBJECT_ABSENT = 0x00000001
} ESP_TOKEN_CONFIG_FLAGS;

Values

VALORE DESCRIZIONE
ESP_TOKEN_CONFIG_FLAGS_SKIP_IF_OBJECT_ABSENT Specifica di ignorare l'applicazione della configurazione se il token non esiste. Ad esempio, se un client imposta questo flag per il token di un thread e il thread non rappresenta, la configurazione del token non verrà applicata.
Se il token è assente, questo flag valuta in modo implicito il filtro del token su true.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

ESP_TOKEN_CONFIG

La struttura di configurazione per un oggetto evento token è ESP_TOKEN_CONFIG.

Syntax

typedef struct ESP_TOKEN_CONFIG
{
    ESP_TOKEN_CONFIG_FLAGS Flags;
    ESP_EVENT_OBJECT_CONFIG EventObjectConfig;

    UINT32 PropertiesCount;
    _Field_size_(PropertiesCount) const ESP_TOKEN_PROPERTY_ID* Properties;
} ESP_TOKEN_CONFIG;

Members

FIELD DESCRIZIONE
Bandiere Specifica i flag per il token.
EventObjectConfig Fornisce la configurazione dell'oggetto evento per il token.
PropertiesCount Fornisce il numero di elementi nella matrice "Properties".
Proprietà Fornisce una matrice di proprietà del token che devono essere acquisite per il token.

Requirements

Requirement Value
Header esptypes.h

Vedere anche

ESP_TOKEN_INFO

La struttura ESP_TOKEN_INFO specifica le informazioni per un token. Questa struttura viene fornita come parte di una notifica degli eventi (una per ogni token associato a un evento) e contiene vari dettagli sul token.

Syntax

typedef struct ESP_TOKEN_INFO
{
    ESP_EVENT_OBJECT_INFO ObjectInfo;
} ESP_TOKEN_INFO;

Members

FIELD DESCRIZIONE
ObjectInfo Specifica informazioni sull'oggetto evento del token.

Requirements

Requirement Value
Header esptypes.h

Vedere anche