DkmNativeModuleInstance.FindExportByOrdinal Method

Definition

Overloads

FindExportByOrdinal(UInt32, Boolean)

Finds the address of the exported function (or data export) specified by the ordinal.

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

FindExportByOrdinal(DkmWorkList, UInt32, Boolean, DkmCompletionRoutine<DkmFindExportByOrdinalAsyncResult>)

Finds the address of the exported function (or data export) specified by the ordinal.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

FindExportByOrdinal(UInt32, Boolean)

Finds the address of the exported function (or data export) specified by the ordinal.

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

public:
 Microsoft::VisualStudio::Debugger::Native::DkmNativeInstructionAddress ^ FindExportByOrdinal(System::UInt32 Ordinal, bool IgnoreDataExports);
public:
 Microsoft::VisualStudio::Debugger::Native::DkmNativeInstructionAddress ^ FindExportByOrdinal(unsigned int Ordinal, bool IgnoreDataExports);
Microsoft::VisualStudio::Debugger::Native::DkmNativeInstructionAddress FindExportByOrdinal(unsigned int Ordinal, bool IgnoreDataExports);
public Microsoft.VisualStudio.Debugger.Native.DkmNativeInstructionAddress FindExportByOrdinal (uint Ordinal, bool IgnoreDataExports);
public Microsoft.VisualStudio.Debugger.Native.DkmNativeInstructionAddress? FindExportByOrdinal (uint Ordinal, bool IgnoreDataExports);
member this.FindExportByOrdinal : uint32 * bool -> Microsoft.VisualStudio.Debugger.Native.DkmNativeInstructionAddress
Public Function FindExportByOrdinal (Ordinal As UInteger, IgnoreDataExports As Boolean) As DkmNativeInstructionAddress

Parameters

Ordinal
UInt32

[In] The ordinal number to search for in the module's export table (includes the Ordinal Base).

IgnoreDataExports
Boolean

[In] If true, the implementation will ignore any export which is in non-executable memory.

Returns

[Out,Optional] If the export was found in the specified module, this will contain the target address. Note that this instruction address object may be in a different module than the searched module. This can happen if the export was forwarded and the destination module is already loaded. If the destination module is not loaded, the export will be ignored.

Applies to

FindExportByOrdinal(DkmWorkList, UInt32, Boolean, DkmCompletionRoutine<DkmFindExportByOrdinalAsyncResult>)

Finds the address of the exported function (or data export) specified by the ordinal.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

public:
 void FindExportByOrdinal(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, System::UInt32 Ordinal, bool IgnoreDataExports, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Native::DkmFindExportByOrdinalAsyncResult> ^ CompletionRoutine);
public void FindExportByOrdinal (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, uint Ordinal, bool IgnoreDataExports, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Native.DkmFindExportByOrdinalAsyncResult> CompletionRoutine);
member this.FindExportByOrdinal : Microsoft.VisualStudio.Debugger.DkmWorkList * uint32 * bool * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Native.DkmFindExportByOrdinalAsyncResult> -> unit
Public Sub FindExportByOrdinal (WorkList As DkmWorkList, Ordinal As UInteger, IgnoreDataExports As Boolean, CompletionRoutine As DkmCompletionRoutine(Of DkmFindExportByOrdinalAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

Ordinal
UInt32

[In] The ordinal number to search for in the module's export table (includes the Ordinal Base).

IgnoreDataExports
Boolean

[In] If true, the implementation will ignore any export which is in non-executable memory.

CompletionRoutine
DkmCompletionRoutine<DkmFindExportByOrdinalAsyncResult>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to