Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:17
protectorHeath Stewart9-Jun-04 2:17 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:20
protectorHeath Stewart9-Jun-04 2:20 
Questionup,down,right,left keys not working with KeyDown event? Pin
User 9625788-Jun-04 20:20
User 9625788-Jun-04 20:20 
AnswerRe: up,down,right,left keys not working with KeyDown event? Pin
Syed Abdul Khader8-Jun-04 23:08
Syed Abdul Khader8-Jun-04 23:08 
GeneralParameters in C# Web Programming Pin
bdi0078-Jun-04 17:22
bdi0078-Jun-04 17:22 
GeneralRe: Parameters in C# Web Programming Pin
Heath Stewart8-Jun-04 17:23
protectorHeath Stewart8-Jun-04 17:23 
GeneralLoading Dlls through C# Pin
ganeshvijay8-Jun-04 16:43
ganeshvijay8-Jun-04 16:43 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart8-Jun-04 17:22
protectorHeath Stewart8-Jun-04 17:22 
You need to understand the structure of a PE/COFF executable, and only then can you get the exported functions, structs, and classes. This is done by enumerating virtual directories in the PE/COFF executable headers and using the Relative Virtual Addresses (RVAs) to get the functions from the Export Address Table (EAT).

See the following two articles, both my Matt Pietrek for MSDN Magazine:
  1. Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format -- MSDN Magazine, February 2002
    [^]
  2. Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format, Part 2 -- MSDN Magazine, March 2002[^]
In order to implement the code correctly, you may need an unsafe context (it's possible without, but tedious) and you also need a good grasp on unmanaged interoperability. For more information on that, read Interoperating with Unmanaged Code[^] in the .NET Framework SDK.

If there is already sample code, I'm not aware of it (hey, I'm not google Smile | :) ). You could try searching for a sample using keywords from the articles above, or even searching for "C#", "RVA", etc.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Loading Dlls through C# Pin
Heath Stewart9-Jun-04 2:16
protectorHeath Stewart9-Jun-04 2:16 
GeneralPrint Picture Pin
The_Soul_Of_Rock8-Jun-04 16:21
The_Soul_Of_Rock8-Jun-04 16:21 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 17:26
protectorHeath Stewart8-Jun-04 17:26 
GeneralRe: Print Picture Pin
The_Soul_Of_Rock8-Jun-04 17:58
The_Soul_Of_Rock8-Jun-04 17:58 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 18:02
protectorHeath Stewart8-Jun-04 18:02 
GeneralAbout case assembly version lessoned Pin
pig12348-Jun-04 16:11
pig12348-Jun-04 16:11 
GeneralRe: About case assembly version lessoned Pin
Heath Stewart8-Jun-04 17:32
protectorHeath Stewart8-Jun-04 17:32 
GeneralRe: About case assembly version lessoned Pin
pig12348-Jun-04 19:29
pig12348-Jun-04 19:29 
QuestionProject report generation using GDI+ ? Pin
sachinkalse8-Jun-04 14:48
sachinkalse8-Jun-04 14:48 
AnswerRe: Project report generation using GDI+ ? Pin
Heath Stewart8-Jun-04 17:43
protectorHeath Stewart8-Jun-04 17:43 
QuestionHow do i programatically restart the current website or appdomain Pin
kris.mackintosh8-Jun-04 12:33
kris.mackintosh8-Jun-04 12:33 
AnswerRe: How do i programatically restart the current website or appdomain Pin
Heath Stewart8-Jun-04 17:38
protectorHeath Stewart8-Jun-04 17:38 
GeneralHelp with Windows services Pin
quilkin8-Jun-04 11:58
quilkin8-Jun-04 11:58 
GeneralRe: Help with Windows services Pin
Heath Stewart8-Jun-04 12:21
protectorHeath Stewart8-Jun-04 12:21 
GeneralRe: Help with Windows services Pin
quilkin9-Jun-04 2:20
quilkin9-Jun-04 2:20 
GeneralRe: Help with Windows services Pin
quilkin9-Jun-04 5:49
quilkin9-Jun-04 5:49 
GeneralListbox not refreshing. Pin
shadow_nubcake8-Jun-04 11:28
shadow_nubcake8-Jun-04 11:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.