nf_setOptions

Specifies the number of worker threads and initialization flags.
void nf_setOptions(DWORD nThreads, DWORD flags)

Parameters

nThreads
Number of worker threads for NF_EventHandler events.
flags
A combination of flags from NF_FLAGS:
NFF_NONE = 0 - no flags
NFF_DISABLE_AUTO_REGISTER = 4 - Disables automatic registering of the driver during nf_init call.
NFF_DISABLE_AUTO_START = 8 - Disables automatic start of the driver in nf_init.

Remarks

The function can be called before nf_init. If it is called after the initialization, the changes are not applied until the library is reinitialized. By default nThreads = 1 and flags = 0. It means that the events are indicated from a single thread and all flags are disabled. When nThreads=0 the code detects the number of logical processors and uses it as the number of worker threads.

Requirements

Driver type WFP, TDI
Header nfapi.h
Library nfapi.lib