필터 엔진에 대한 세션 열기

설명선 드라이버는 필터 엔진에 필터 추가와 같은 관리 작업을 수행하려면 필터 엔진에 대한 세션을 열어야 합니다. 콜아웃 드라이버는 FwpmEngineOpen0 함수를 호출하여 필터 엔진에 대한 세션을 엽니다. 예:

HANDLE engineHandle;
NTSTATUS status;

// Open a session to the filter engine
status =
 FwpmEngineOpen0(
    NULL,              // The filter engine on the local system
    RPC_C_AUTHN_WINNT, // Use the Windows authentication service
    NULL,              // Use the calling thread's credentials
    NULL,              // There are no session-specific parameters
    &engineHandle      // Pointer to a variable to receive the handle
    );

설명선 드라이버가 필터 엔진에 대한 세션을 성공적으로 연 후 반환된 핸들을 사용하여 다른 Windows 필터링 플랫폼 관리 함수를 호출할 수 있습니다.