IDebugEngine2::GetEngineID
DE(디버깅 엔진)의 GUID를 가져옵니다.
구문
매개 변수
pguidEngine
[out] DE의 GUID를 반환합니다.
Return Value
성공하면 S_OK
를 반환하고, 실패하면 오류 코드를 반환합니다.
설명
일반적인 GUID의 몇 가지 예로는 guidScriptEng
, guidNativeEng
또는 guidSQLEng
가 있습니다. 새 디버그 엔진은 식별을 위해 고유한 GUID를 만듭니다.
예시
다음 예제는 IDebugEngine2 인터페이스를 구현하는 간단한 CEngine
개체에 대해 이 메서드를 구현하는 방법을 보여 줍니다.
HRESULT CEngine::GetEngineId(GUID *pguidEngine) {
if (pguidEngine) {
// Set pguidEngine to guidBatEng, as defined in the Batdbg.idl file.
// Other languages would require their own guidDifferentEngine to be
//defined in the Batdbg.idl file.
*pguidEngine = guidBatEng;
return NOERROR; // This is typically S_OK.
} else {
return E_INVALIDARG;
}
}