Hizkuntza
Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Obtiene el tipo de ubicación del punto de interrupción de esta solicitud de punto de interrupción.
Sintaxis
Parámetros
pBPLocationType
[out] Devuelve un valor de la enumeración BP_LOCATION_TYPE que describe la ubicación de esta solicitud de punto de interrupción.
Valor devuelto
Si se ejecuta correctamente, devuelve S_OK; de lo contrario, devuelve un código de error. Devuelve E_FAIL si el campo bpLocation de la estructura de BP_REQUEST_INFO asociada no es válido.
Ejemplo
En el ejemplo siguiente se muestra cómo implementar este método para un objeto de CDebugBreakpointRequest simple que expone la interfaz IDebugBreakpointRequest2.
HRESULT CDebugBreakpointRequest::GetLocationType(BP_LOCATION_TYPE* pBPLocationType)
{
HRESULT hr;
if (pBPLocationType)
{
// Set default BP_LOCATION_TYPE.
*pBPLocationType = BPLT_NONE;
// Check if the BPREQI_BPLOCATION flag is set in BPREQI_FIELDS.
if (IsFlagSet(m_bpRequestInfo.dwFields, BPREQI_BPLOCATION))
{
// Get the new BP_LOCATION_TYPE.
*pBPLocationType = m_bpRequestInfo.bpLocation.bpLocationType;
hr = S_OK;
}
else
{
hr = E_FAIL;
}
}
else
{
hr = E_INVALIDARG;
}
return hr;
}
Consulte también
- IDebugBreakpointRequest2
- BP_LOCATION_TYPE
- BPREQI_FIELDS
- BP_REQUEST_INFO