Click here to Skip to main content
16,017,944 members
Home / Discussions / C#
   

C#

 
GeneralRe: help Pin
ednrgc27-Nov-06 8:29
ednrgc27-Nov-06 8:29 
GeneralRe: help Pin
amirafouad2127-Nov-06 10:05
amirafouad2127-Nov-06 10:05 
QuestionReplacing system tray clock Pin
Vandra Akos27-Nov-06 3:25
Vandra Akos27-Nov-06 3:25 
AnswerRe: Replacing system tray clock Pin
Dave Kreskowiak27-Nov-06 6:20
mveDave Kreskowiak27-Nov-06 6:20 
GeneralRe: Replacing system tray clock Pin
Vandra Akos27-Nov-06 6:49
Vandra Akos27-Nov-06 6:49 
GeneralRe: Replacing system tray clock Pin
Dave Kreskowiak27-Nov-06 7:20
mveDave Kreskowiak27-Nov-06 7:20 
QuestionRe: Replacing system tray clock Pin
Vandra Akos28-Nov-06 2:08
Vandra Akos28-Nov-06 2:08 
AnswerRe: Replacing system tray clock Pin
Dave Kreskowiak28-Nov-06 3:05
mveDave Kreskowiak28-Nov-06 3:05 
Vandra Akos wrote:
So, do you have some code snippets, or anything to start with


Nope. Just a few hours of Googling taught me what needed to be done, including finding the correct window handle, processing of the messages, and code injection into another process.


Vandra Akos wrote:
i wonder if it was possible for a process to draw into another process' area


Yes it is. All you need in the handle to the window you want to draw in. Keeping it drawn the way you want and not having the application overdraw what you've done is the hard part.

Vandra Akos wrote:
If it was, that could be a huge security flaw in windows... I mean i could go on, and change any window's contents...


Not easily, but it could be done. It's not as big a problem as you might think, though. There are security restrictions on some of the Win32 functions that you have to call to pull this off. If your a normal User, then you can't make some of the calls required to do this. If your an Administrator though...


Dave Kreskowiak
Microsoft MVP - Visual Basic


AnswerRe: Replacing system tray clock Pin
Luc Pattyn27-Nov-06 8:19
sitebuilderLuc Pattyn27-Nov-06 8:19 
GeneralRe: Replacing system tray clock Pin
axos8829-Nov-06 2:03
axos8829-Nov-06 2:03 
GeneralRe: Replacing system tray clock Pin
Luc Pattyn29-Nov-06 5:33
sitebuilderLuc Pattyn29-Nov-06 5:33 
QuestionConnecting to a server via GSM Pin
Waskira27-Nov-06 2:13
Waskira27-Nov-06 2:13 
AnswerRe: Connecting to a server via GSM Pin
chris_do27-Nov-06 3:41
chris_do27-Nov-06 3:41 
GeneralRe: Connecting to a server via GSM Pin
Waskira27-Nov-06 4:33
Waskira27-Nov-06 4:33 
QuestionOpening a new console window Pin
Dario Solera27-Nov-06 1:53
Dario Solera27-Nov-06 1:53 
AnswerRe: Opening a new console window Pin
stancrm27-Nov-06 3:51
stancrm27-Nov-06 3:51 
AnswerRe: Opening a new console window Pin
Nader Elshehabi27-Nov-06 8:59
Nader Elshehabi27-Nov-06 8:59 
QuestionCan't run windows service Pin
saikat_0027-Nov-06 1:07
saikat_0027-Nov-06 1:07 
AnswerRe: Can't run windows service Pin
Weckmann27-Nov-06 3:56
Weckmann27-Nov-06 3:56 
QuestionSaving & Loading TreeView especially Tag of Nodes Pin
Andy Rama27-Nov-06 0:54
Andy Rama27-Nov-06 0:54 
AnswerRe: Saving & Loading TreeView especially Tag of Nodes Pin
Not Active27-Nov-06 3:33
mentorNot Active27-Nov-06 3:33 
Question[Message Deleted] Pin
shyamy27-Nov-06 0:11
shyamy27-Nov-06 0:11 
AnswerRe: Conversion Pin
ejuanpp27-Nov-06 1:09
ejuanpp27-Nov-06 1:09 
AnswerRe: Conversion Pin
AB777127-Nov-06 1:28
AB777127-Nov-06 1:28 
AnswerRe: Conversion Pin
Guffa27-Nov-06 1:44
Guffa27-Nov-06 1:44 

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.