NativeLibrary.TryGetExport(IntPtr, String, IntPtr) 메서드

정의

내보낸 기호의 주소를 가져오고 메서드 호출이 성공했는지 여부를 나타내는 값을 반환합니다.

public:
 static bool TryGetExport(IntPtr handle, System::String ^ name, [Runtime::InteropServices::Out] IntPtr % address);
public static bool TryGetExport (IntPtr handle, string name, out IntPtr address);
static member TryGetExport : nativeint * string * nativeint -> bool
Public Shared Function TryGetExport (handle As IntPtr, name As String, ByRef address As IntPtr) As Boolean

매개 변수

handle
IntPtr

nativeint

네이티브 라이브러리 OS 핸들입니다.

name
String

내보낸 기호의 이름입니다.

address
IntPtr

nativeint

메서드가 반환될 때 기호 주소(있는 경우)를 포함합니다.

반환

true 내보낸 기호의 주소가 성공적으로 발견되었으면 이고, 그렇지 않으면 입니다 false.

예외

handleZero이거나 namenull인 경우

설명

이는 OS 호출에 대한 간단한 래퍼이며 이름 맹글링을 수행하지 않습니다.

이외의 잘못된 handle 매개 변수 IntPtr.Zero 를 사용하여 이 메서드를 호출하는 것은 지원되지 않으며 정의되지 않은 동작이 발생합니다.

적용 대상