Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: logg/scan open windows - important question! Pin
pat27088129-Jul-04 10:27
pat27088129-Jul-04 10:27 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart29-Jul-04 10:48
protectorHeath Stewart29-Jul-04 10:48 
GeneralRe: logg/scan open windows - important question! Pin
pat27088130-Jul-04 0:39
pat27088130-Jul-04 0:39 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart30-Jul-04 3:43
protectorHeath Stewart30-Jul-04 3:43 
GeneralRe: logg/scan open windows - important question! Pin
pat27088130-Jul-04 4:58
pat27088130-Jul-04 4:58 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart30-Jul-04 5:33
protectorHeath Stewart30-Jul-04 5:33 
GeneralRe: logg/scan open windows - important question! Pin
pat27088130-Jul-04 6:21
pat27088130-Jul-04 6:21 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart30-Jul-04 7:30
protectorHeath Stewart30-Jul-04 7:30 
pat270881 wrote:
why don't you hand over the evt-object in the constructor of the Timer-object?

And marshal it across thread boundaries for no reason? That's inefficient and unecessary. Just because the .NET Framework makes some things so easy does't mean you should do it that way. And passing a value type (like count) as an object requires boxing and unboxing, which is very expensive (in terms of CPU time). Even casting reference types takes extra cycles that aren't necessary by keeping it as a field.

pat270881 wrote:
What value has the TimerCallback-paramter in the constructor of the TimerCallback?

It's the method that the delegate references. As I said before, a delegate is like a managed function pointer.

pat270881 wrote:
What values have the parameter of the EnumWindows-method?

It's in the Platform SDK for EnumWindows.

pat270881 wrote:
what means the nWnd.ToInt64() and the 0x{0:x8)?

It's in the .NET Framework SDK. Look-up IntPtr.ToInt64 and string formatting. There's no purpose explaining this if you haven't even read about it yet. If you have questions beyond that, this is the place to ask.

As far as the flow of execution you are right. The code is pretty self-explanitory if you understand the types and members used in the code.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: logg/scan open windows - important question! Pin
pat27088130-Jul-04 7:47
pat27088130-Jul-04 7:47 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart30-Jul-04 8:04
protectorHeath Stewart30-Jul-04 8:04 
GeneralRe: logg/scan open windows - important question! Pin
pat27088130-Jul-04 9:17
pat27088130-Jul-04 9:17 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart30-Jul-04 9:29
protectorHeath Stewart30-Jul-04 9:29 
GeneralRe: logg/scan open windows - important question! Pin
pat27088130-Jul-04 9:52
pat27088130-Jul-04 9:52 
GeneralRe: logg/scan open windows - important question! Pin
pat2708812-Aug-04 4:28
pat2708812-Aug-04 4:28 
GeneralError while deploying with the emulator Pin
mathon16-Aug-04 7:53
mathon16-Aug-04 7:53 
GeneralRe: logg/scan open windows - important question! Pin
pat27088129-Jul-04 5:43
pat27088129-Jul-04 5:43 
GeneralRe: logg/scan open windows - important question! Pin
Heath Stewart29-Jul-04 6:21
protectorHeath Stewart29-Jul-04 6:21 
GeneralA Comprehensive Logging Package for .NET Pin
pat27088128-Jul-04 5:40
pat27088128-Jul-04 5:40 
GeneralRe: A Comprehensive Logging Package for .NET Pin
Heath Stewart28-Jul-04 6:39
protectorHeath Stewart28-Jul-04 6:39 
GeneralRe: A Comprehensive Logging Package for .NET Pin
pat27088128-Jul-04 6:53
pat27088128-Jul-04 6:53 
GeneralRe: A Comprehensive Logging Package for .NET Pin
Heath Stewart28-Jul-04 6:59
protectorHeath Stewart28-Jul-04 6:59 
GeneralRe: A Comprehensive Logging Package for .NET Pin
Giles28-Jul-04 21:00
Giles28-Jul-04 21:00 
GeneralRe: A Comprehensive Logging Package for .NET Pin
pat27088128-Jul-04 22:26
pat27088128-Jul-04 22:26 
GeneralMemory leaks Pin
blankg28-Jul-04 5:37
blankg28-Jul-04 5:37 
GeneralRe: Memory leaks Pin
Nick Parker28-Jul-04 6:27
protectorNick Parker28-Jul-04 6:27 

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.