Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Attaches to the associated program or defers the attach process to the Attach method.
Syntax
Parameters
guidProgramId
[in] GUID to assign to the associated program.
Return Value
If successful, returns S_OK. Returns S_FALSE if the Attach method should not be called. Otherwise, returns an error code.
Remarks
This method is called during the attach process, before the Attach method is called. The OnAttach method can perform the attach process itself (in which case, this method returns S_FALSE) or defer the attach process to the IDebugEngine2::Attach method (the OnAttach method returns S_OK). In either event, the OnAttach method can set the GUID of the program being debugged to the given GUID.