Click here to Skip to main content
15,905,316 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questiongenerating documentation using ndoc Pin
pooja sharma2-Feb-06 19:03
pooja sharma2-Feb-06 19:03 
GeneralRe: generating documentation using ndoc Pin
Guffa3-Feb-06 4:09
Guffa3-Feb-06 4:09 
GeneralRe: generating documentation using ndoc Pin
pooja sharma3-Feb-06 19:03
pooja sharma3-Feb-06 19:03 
AnswerRe: generating documentation using ndoc Pin
Kevin McFarlane4-Feb-06 2:32
Kevin McFarlane4-Feb-06 2:32 
Questionhelp regarding convert Image to Byte!!!! Pin
hbjs2-Feb-06 14:56
hbjs2-Feb-06 14:56 
AnswerRe: help regarding convert Image to Byte!!!! Pin
Christian Graus2-Feb-06 15:18
protectorChristian Graus2-Feb-06 15:18 
GeneralRe: help regarding convert Image to Byte!!!! Pin
hbjs2-Feb-06 15:28
hbjs2-Feb-06 15:28 
QuestionSetWindowsHookEx on WH_CBT to capture HCBT_MOVESIZE on a single thread outside my application? Possible from C#? Pin
MogobuTheFool2-Feb-06 12:00
MogobuTheFool2-Feb-06 12:00 
I'm looking for a way to capture information regarding the movements of windows belonging to an application outside my own. I'm working in C#.

My situation, in brief: I have a window-management tool which takes windows created by another application and sizes/positions them on the desktop based on a user's pre-defined preferences. I currently achieve this via a timer-based loop which reads top-level windows through Windows API calls.

Instead of this, I would like to monitor the windows message queues to note windows position changes; eventually, I would also like to monitor creation and destruction of windows, but I'll start with reading movement.

The trouble is that while there are many guides for writing local hooks, there are few for global hooks -- and the global hooks are mostly about capturing mouse and keyboard.

I know the target window handles; I believe I want to create Local hooks into specific threads (outside my application.) These will involve the same memory-context problems as global hooks, and I suspect I will need a .DLL with the hook handling code. I am unsure how to achieve this in VS 2005 and
C#; it seems I'm forced to use some compiled C code? Is that correct?

If anyone can offer advice or good references, it would be greatly appreciated. . . or if someone with experience building .DLL's for handling hooks can lend a hand, I'd be thrilled.

Again, my entire application is built and works; I just want to get away from the inelegant solution of repeatedly checking all window placements to compare against the last known position; I'd really like to make the architecture event-driven.

Thanks in advance.
AnswerRe: SetWindowsHookEx on WH_CBT to capture HCBT_MOVESIZE on a single thread outside my application? Possible from C#? Pin
S. Senthil Kumar4-Feb-06 20:14
S. Senthil Kumar4-Feb-06 20:14 
GeneralRe: SetWindowsHookEx on WH_CBT to capture HCBT_MOVESIZE on a single thread outside my application? Possible from C#? Pin
MogobuTheFool5-Feb-06 7:38
MogobuTheFool5-Feb-06 7:38 
QuestionWindows Mobile 5 Smartphone Edition Pin
dipankaronline2-Feb-06 5:22
dipankaronline2-Feb-06 5:22 
AnswerRe: Windows Mobile 5 Smartphone Edition Pin
John.Jiang2-Feb-06 6:35
John.Jiang2-Feb-06 6:35 
Questionhelp regarding .NET cryptography Pin
pprasad2-Feb-06 2:42
pprasad2-Feb-06 2:42 
QuestionHow to signal an app GUI from a .NET server Pin
Dave Midgley2-Feb-06 2:34
Dave Midgley2-Feb-06 2:34 
AnswerRe: How to signal an app GUI from a .NET server Pin
S. Senthil Kumar4-Feb-06 20:21
S. Senthil Kumar4-Feb-06 20:21 
GeneralRe: How to signal an app GUI from a .NET server Pin
Dave Midgley4-Feb-06 22:38
Dave Midgley4-Feb-06 22:38 
QuestionAsking...... Pin
Divyang Mithaiwala2-Feb-06 0:34
Divyang Mithaiwala2-Feb-06 0:34 
AnswerRe: Asking...... Pin
Colin Angus Mackay2-Feb-06 4:17
Colin Angus Mackay2-Feb-06 4:17 
Questionnon-rectangular forms Pin
dlinks2-Feb-06 0:16
dlinks2-Feb-06 0:16 
AnswerRe: non-rectangular forms Pin
Dave Kreskowiak2-Feb-06 5:34
mveDave Kreskowiak2-Feb-06 5:34 
QuestionDelete user by using DirectoryServices Pin
osamahmirza1-Feb-06 20:03
osamahmirza1-Feb-06 20:03 
Question.net Framework Pin
Net-Programer-and-developer1-Feb-06 8:32
Net-Programer-and-developer1-Feb-06 8:32 
AnswerRe: .net Framework Pin
Dave Kreskowiak1-Feb-06 9:08
mveDave Kreskowiak1-Feb-06 9:08 
GeneralRe: .net Framework Pin
gurvinder singh alune8-Jan-09 19:18
gurvinder singh alune8-Jan-09 19:18 
GeneralRe: .net Framework Pin
Dave Kreskowiak9-Jan-09 1:50
mveDave Kreskowiak9-Jan-09 1:50 

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.