共用方式為


Target Information

The method GetDebuggeeType returns the nature of the current target (for example, whether it is a kernel-mode or user-mode target), and how the debugger engine is connected to it.

If the target is a crash dump file, the method GetDumpFormatFlags will indicate what information is contained in the dump.

目標電腦

The page size of the target's computer is returned by GetPageSize. IsPointer64Bit will indicate if the computer uses 32-bit or 64-bit addresses.

Note Internally, the debugger engine always uses 64-bit addresses for the target. 如果目標只使用32位元位址,引擎會在與目標通訊時自動轉換它們。

The number of processors in the target's computer is returned by GetNumberProcessors.

有三種不同的處理器類型與目標電腦相關聯:

  • 實際處理器類型是目標電腦中實體處理器的類型。 This is returned by GetActualProcessorType.

  • 執行處理器類型是目前執行處理器內容中使用的處理器類型。 This is returned by GetExecutingProcessorType.

  • 有效的處理器類型是偵錯工具在解譯來自目標的資訊時使用的處理器類型,例如,設定中斷點、存取暫存器,以及取得堆疊追蹤。 The effective processor type is returned by GetEffectiveProcessorType and can be changed using SetEffectiveProcessorType.

有效的處理器類型和執行處理器類型可能與實際的處理器類型不同,例如,當實體處理器是 x64 處理器,且以 x86 模式執行時。

The different executing processor types that are supported by the physical processor on the target's computer are returned by GetPossibleExecutingProcessorTypes. The number of these is returned by GetNumberPossibleExecutingProcessorTypes.

The list of processor types that is supported by the debugger engine is returned by GetSupportedProcessorTypes. The number of supported processor types is returned by GetNumberSupportedProcessorTypes.

The names (full and abbreviated) of a processor type are returned by GetProcessorTypeNames.

The current time on the target's computer is returned by GetCurrentTimeDate. The length of time the target's computer has been running since the last boot is returned by GetCurrentSystemUpTime. 時間資訊可能不適用於所有目標。

目標版本

The Windows version running on the target's computer is returned by GetSystemVersionValues and the Request operation DEBUG_REQUEST_GET_WIN32_MAJOR_MINOR_VERSIONS, and a description of the Windows version is returned by GetSystemVersionString. Some of this information is also returned by GetSystemVersion.