Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: USB port programming?? Pin
Heath Stewart9-Jun-04 2:44
protectorHeath Stewart9-Jun-04 2:44 
GeneralA ListBox problem Pin
chenshch9-Jun-04 1:26
chenshch9-Jun-04 1:26 
GeneralRe: A ListBox problem Pin
Heath Stewart9-Jun-04 2:40
protectorHeath Stewart9-Jun-04 2:40 
GeneralMaking Automated Ebay Signin and Bidding program... Pin
geopass8-Jun-04 23:53
geopass8-Jun-04 23:53 
GeneralRe: Making Automated Ebay Signin and Bidding program... Pin
Colin Angus Mackay9-Jun-04 1:41
Colin Angus Mackay9-Jun-04 1:41 
Questionwhy MyUITypeEditor doesn't work in runtime at some case ? Pin
pig12348-Jun-04 23:47
pig12348-Jun-04 23:47 
QuestionMeta Tags in RTF file? Pin
sachinkalse8-Jun-04 23:05
sachinkalse8-Jun-04 23:05 
AnswerRe: Meta Tags in RTF file? Pin
Heath Stewart9-Jun-04 2:33
protectorHeath Stewart9-Jun-04 2:33 
GeneralRemoting in Windows CE Pin
evilnut8-Jun-04 20:56
evilnut8-Jun-04 20:56 
GeneralRe: Remoting in Windows CE Pin
Heath Stewart9-Jun-04 2:25
protectorHeath Stewart9-Jun-04 2:25 
GeneralPosting records in 2 data grids Pin
orpus8-Jun-04 20:25
orpus8-Jun-04 20:25 
GeneralRe: Posting records in 2 data grids Pin
Vasek8-Jun-04 22:11
Vasek8-Jun-04 22:11 
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 

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.