C# Класс PowerStudio.DebugEngine.DebugProgramProvider

Наследование: IDebugProgramProvider2
Показать файл Открыть проект

Открытые методы

Метод Описание
GetProviderProcessData ( enum_PROVIDER_FLAGS Flags, IDebugDefaultPort2 pPort, AD_PROCESS_ID ProcessId, CONST_GUID_ARRAY EngineFilter, PROVIDER_PROCESS_DATA pProcess ) : int

Retrieves a list of running programs from a specified process.

This method is normally called by a process to obtain a list of programs running in that process. The returned information is a list of IDebugProgramNode2 objects.

GetProviderProgramNode ( enum_PROVIDER_FLAGS Flags, IDebugDefaultPort2 pPort, AD_PROCESS_ID ProcessId, System.Guid &guidEngine, ulong programId, IDebugProgramNode2 &ppProgramNode ) : int

Retrieves the program node for a specific program.

SetLocale ( ushort wLangID ) : int

Establishes a locale to be used for any locale-specific resources.

WatchForProviderEvents ( enum_PROVIDER_FLAGS Flags, IDebugDefaultPort2 pPort, AD_PROCESS_ID ProcessId, CONST_GUID_ARRAY EngineFilter, System.Guid &guidLaunchingEngine, IDebugPortNotify2 pEventCallback ) : int

Allows the process to be notified of port events.

When a caller wants to remove an event handler that was established with a previous call to this method, the caller passes the same parameters as it did the first time but leaves off the PFLAG_REASON_WATCH flag.

Описание методов

GetProviderProcessData() публичный Метод

Retrieves a list of running programs from a specified process.
This method is normally called by a process to obtain a list of programs running in that process. The returned information is a list of IDebugProgramNode2 objects.
public GetProviderProcessData ( enum_PROVIDER_FLAGS Flags, IDebugDefaultPort2 pPort, AD_PROCESS_ID ProcessId, CONST_GUID_ARRAY EngineFilter, PROVIDER_PROCESS_DATA pProcess ) : int
Flags enum_PROVIDER_FLAGS /// A combination of flags from the PROVIDER_FLAGS enumeration. The following flags are typical for this call: /// /// Flag Description /// PFLAG_REMOTE_PORT Caller is running on remote machine. /// PFLAG_DEBUGGEE Caller is currently being debugged (additional information about marshalling will be returned for each node). /// PFLAG_ATTACHED_TO_DEBUGGEE Caller was attached to but not launched by the debugger. /// PFLAG_GET_PROGRAM_NODES Caller is asking for a list of program nodes to be returned. ///
pPort IDebugDefaultPort2 The port the calling process is running on.
ProcessId AD_PROCESS_ID An AD_PROCESS_ID structure holding the ID of the process that contains the program in question.
EngineFilter CONST_GUID_ARRAY An array of GUIDs for debug engines assigned to debug this process (these will be used to filter the programs that are actually returned based on what the supplied engines support; if no engines are specified, then all programs will be returned).
pProcess PROVIDER_PROCESS_DATA A PROVIDER_PROCESS_DATA structure that is filled in with the requested information.
Результат int

GetProviderProgramNode() публичный Метод

Retrieves the program node for a specific program.
public GetProviderProgramNode ( enum_PROVIDER_FLAGS Flags, IDebugDefaultPort2 pPort, AD_PROCESS_ID ProcessId, System.Guid &guidEngine, ulong programId, IDebugProgramNode2 &ppProgramNode ) : int
Flags enum_PROVIDER_FLAGS /// A combination of flags from the PROVIDER_FLAGS enumeration. The following flags are typical for this call: /// /// Flag Description /// PFLAG_REMOTE_PORT Caller is running on remote machine. /// PFLAG_DEBUGGEE Caller is currently being debugged (additional information about marshalling will be returned for each node). /// PFLAG_ATTACHED_TO_DEBUGGEE Caller was attached to but not launched by the debugger. ///
pPort IDebugDefaultPort2 The port the calling process is running on.
ProcessId AD_PROCESS_ID An AD_PROCESS_ID structure holding the ID of the process that contains the program in question.
guidEngine System.Guid GUID of the debug engine that the program is attached to (if any).
programId ulong ID of the program for which to get the program node.
ppProgramNode IDebugProgramNode2 An IDebugProgramNode2 object representing the requested program node.
Результат int

SetLocale() публичный Метод

Establishes a locale to be used for any locale-specific resources.
public SetLocale ( ushort wLangID ) : int
wLangID ushort Language ID to establish. For example, 1033 for English.
Результат int

WatchForProviderEvents() публичный Метод

Allows the process to be notified of port events.
When a caller wants to remove an event handler that was established with a previous call to this method, the caller passes the same parameters as it did the first time but leaves off the PFLAG_REASON_WATCH flag.
public WatchForProviderEvents ( enum_PROVIDER_FLAGS Flags, IDebugDefaultPort2 pPort, AD_PROCESS_ID ProcessId, CONST_GUID_ARRAY EngineFilter, System.Guid &guidLaunchingEngine, IDebugPortNotify2 pEventCallback ) : int
Flags enum_PROVIDER_FLAGS /// A combination of flags from the PROVIDER_FLAGS enumeration. The following flags are typical for this call: /// /// Flag Description /// PFLAG_REMOTE_PORT Caller is running on remote machine. /// PFLAG_DEBUGGEE Caller is currently being debugged (additional information about marshalling is returned for each node). /// PFLAG_ATTACHED_TO_DEBUGGEE Caller was attached to but not launched by the debugger. /// PFLAG_REASON_WATCH Caller wants to watch for events. If this flag is not set. then the callback event is removed and the caller no longer receives notifications. ///
pPort IDebugDefaultPort2 The port the calling process is running on.
ProcessId AD_PROCESS_ID An AD_PROCESS_ID structure holding the ID of the process that contains the program in question.
EngineFilter CONST_GUID_ARRAY An array of GUIDs of debug engines associated with the process.
guidLaunchingEngine System.Guid GUID of the debug engine that launched this process (if any).
pEventCallback IDebugPortNotify2 An IDebugPortNotify2 object that receives the event notifications.
Результат int