Dela via


IDebugProgramPublisher2::PublishProgram

This method makes a program available for debug engines (DEs) and the session debug manager.

HRESULT PublishProgram(
   CONST_GUID_ARRAY Engines,
   LPCOLESTR        szFriendlyName,
   IUnknown*        pDebuggeeInterface
);
int PublishProgram(
   CONST_GUID_ARRAY Engines,
   string           szFriendlyName,
   object           pDebuggeeInterface
);

Parameters

  • Engines
    [in] An array of GUIDs for DEs that can launch or attach to this program.

  • szFriendlyName
    [in] Friendly name for the program (this appears in menus or dialogs presented to the user).

  • pDebuggeeInterface
    [in] IUnknown interface for the program (this value is used as a cookie to uniquely identify the program; this same value is used to "unpublish" the program)

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

To make a program no longer available for debugging, call IDebugProgramPublisher2::UnpublishProgram.

See Also

Reference

IDebugProgramPublisher2

IDebugProgramPublisher2::UnpublishProgram