Click here to Skip to main content
15,918,668 members
Home / Discussions / C#
   

C#

 
AnswerRe: About trojans, and other stealth programs Pin
EliottA8-Dec-08 2:17
EliottA8-Dec-08 2:17 
QuestionWindows Form Icons Pin
AndieDu7-Dec-08 14:15
AndieDu7-Dec-08 14:15 
AnswerRe: Windows Form Icons Pin
kenexcelon7-Dec-08 14:56
kenexcelon7-Dec-08 14:56 
GeneralRe: Windows Form Icons Pin
Luc Pattyn7-Dec-08 15:16
sitebuilderLuc Pattyn7-Dec-08 15:16 
GeneralRe: Windows Form Icons Pin
AndieDu7-Dec-08 16:14
AndieDu7-Dec-08 16:14 
GeneralRe: Windows Form Icons Pin
Luc Pattyn7-Dec-08 16:25
sitebuilderLuc Pattyn7-Dec-08 16:25 
QuestionRead WndProc of other windows Pin
Tony Pottier7-Dec-08 13:36
Tony Pottier7-Dec-08 13:36 
AnswerRe: Read WndProc of other windows Pin
Marcelo Emmerich8-Dec-08 0:56
Marcelo Emmerich8-Dec-08 0:56 
Tony_P,

this can be accomplished by doing the following:

- get the HWND of the application's window you want to hook to
- use GetWindowLong to get the windows WndProc and store it
- create a WndProc method in your app
- use SetWindowLong to inject your Wndproc into the other window
- after doing what you want in *your* WndProc, use CallWindowProc to pass control to the windows original WndProc (you stored it previously)

Please bear in mind that this is not possible in .NET without using DllImport to coredll.dll in order to have access to certain Win32 functions like SetWindowLong, GetWindowLong, GetWindow, CallWindowProc, etc.

Hope this helps.

Marcelo

--
Marcelo Emmerich
Software Development - Computer Graphics - Mobile Computing
http://bytethings.blogspot.com

GeneralRe: Read WndProc of other windows Pin
Tony Pottier9-Dec-08 11:27
Tony Pottier9-Dec-08 11:27 
QuestionA bug with vista Pin
EliottA7-Dec-08 9:52
EliottA7-Dec-08 9:52 
AnswerRe: A bug with vista Pin
Christian Graus7-Dec-08 10:07
protectorChristian Graus7-Dec-08 10:07 
GeneralRe: A bug with vista Pin
EliottA7-Dec-08 10:17
EliottA7-Dec-08 10:17 
GeneralRe: A bug with vista Pin
EliottA7-Dec-08 10:40
EliottA7-Dec-08 10:40 
GeneralRe: A bug with vista Pin
Colin Angus Mackay7-Dec-08 13:57
Colin Angus Mackay7-Dec-08 13:57 
AnswerRe: A bug with vista Pin
Colin Angus Mackay7-Dec-08 10:34
Colin Angus Mackay7-Dec-08 10:34 
QuestionHow to create a GUI using Visual Studio for a SQL database? Pin
Vloops7-Dec-08 7:55
Vloops7-Dec-08 7:55 
AnswerRe: How to create a GUI using Visual Studio for a SQL database? Pin
Christian Graus7-Dec-08 10:09
protectorChristian Graus7-Dec-08 10:09 
GeneralRe: How to create a GUI using Visual Studio for a SQL database? Pin
Vloops7-Dec-08 10:42
Vloops7-Dec-08 10:42 
GeneralRe: How to create a GUI using Visual Studio for a SQL database? Pin
Christian Graus7-Dec-08 11:26
protectorChristian Graus7-Dec-08 11:26 
Questionconnecting my phone to a web service in a local computer [modified] Pin
harcaype7-Dec-08 5:14
harcaype7-Dec-08 5:14 
AnswerRe: connecting my phone to a web service in a local computer Pin
Marcelo Emmerich7-Dec-08 5:44
Marcelo Emmerich7-Dec-08 5:44 
GeneralRe: connecting my phone to a web service in a local computer Pin
harcaype7-Dec-08 6:21
harcaype7-Dec-08 6:21 
GeneralRe: connecting my phone to a web service in a local computer Pin
Marcelo Emmerich7-Dec-08 21:20
Marcelo Emmerich7-Dec-08 21:20 
GeneralRe: connecting my phone to a web service in a local computer Pin
harcaype8-Dec-08 1:05
harcaype8-Dec-08 1:05 
GeneralRe: connecting my phone to a web service in a local computer Pin
Marcelo Emmerich8-Dec-08 1:46
Marcelo Emmerich8-Dec-08 1:46 

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.