type_strict_context_handle 특성

ACF 파일의 [type_strict_context_handle] 를 사용하여 컨텍스트 핸들에 대한 제한을 설정합니다.

[ 
    type_strict_context_handle 
    [, interface-attribute-list] 
] 
interface interface-name
{
    interface-definition-statements
}

매개 변수

interface-attribute-list

인터페이스 전체에 적용되는 기타 ACF 특성입니다. 유효한 특성에는 auto_handle, implicit_handle, explicit_handle최적화, 코드 또는 노코드가 포함됩니다. 여러 특성을 쉼표로 구분합니다.

interface-name

인터페이스의 이름입니다.

interface-definition-statements

인터페이스의 요소를 정의하는 하나 이상의 MIDL 문입니다.

설명

이 특성을 사용하려면 midl.exe 실행할 때 -target 플래그를 NT60 이상으로 설정해야 합니다.

[type_strict_context_handle]는 [strict_context_handle]의 기능 상위 집합입니다. [strict_context_handle]에서 핸들의 형식 ID는 항상 0입니다. [type_strict_context_handle]에서 MIDL 컴파일러에서 고유 형식 ID를 할당합니다.

[strict_context_handle] 대신 [type_strict_context_handle]을 사용하는 것이 좋습니다. 컨텍스트 핸들은 기본적으로 특정 형식과 연결되지 않습니다. 동일한 프로세스에서 여러 유형의 컨텍스트 핸들을 사용하는 경우 악의적인 클라이언트가 다른 핸들 대신 컨텍스트 핸들을 전달하여 바람직하지 않은 결과를 생성할 수 있습니다. [type_strict_context_handle]을 사용하면 애플리케이션이 컨텍스트 핸들 형식 일관성을 적용하고 일치하지 않는 컨텍스트 핸들 형식 사용을 방지할 수 있습니다.

[type_strict_context_handle]로 특성이 지정된 컨텍스트 핸들은 [strict_context_handle]를 사용하여 특성을 지정할 수도 없습니다.

추가 정보

ACF(애플리케이션 구성 파일)

코드

컨텍스트 핸들

context_handle_serialize

context_handle_noserialize

explicit_handle

implicit_handle

nocode

최적화

strict_context_handle