Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 21st, 2005, 8:56 AM   #1
Harley82
Newbie
 
Join Date: May 2005
Posts: 4
Rep Power: 0 Harley82 is on a distinguished road
Windows API overriding

Hi,

I'm looking for a way to make windows run my code rather than it's own?

For example, say i wanted to write some code to copy files from one folder to another is there a way to get windows to run my code when i drag and drop a file into another folder instead of running it's own?

Any help is appreciated
Harley82 is offline   Reply With Quote
Old May 21st, 2005, 9:02 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You could write your own version of Windows Explorer.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 26th, 2005, 9:50 PM   #3
new User(Kevin.Parkinson)
Programmer
 
new User(Kevin.Parkinson)'s Avatar
 
Join Date: Mar 2005
Location: Edmonton, Alberta, Canada
Posts: 37
Rep Power: 0 new User(Kevin.Parkinson) is on a distinguished road
Send a message via MSN to new User(Kevin.Parkinson)
You could write your own version of Windows!

...I don't think it's possible to get Windows to run your code unless there already some sort of "interface" there to plug in your code( not unlike skinning ). But, if you wanted to go in there and tell Windows to use your dll instead of twain32.dll for example, I don't think this is possible because of the closed source nature of Windows.

just my $0.02,
Kevin Parkinson
__________________
public class  MySignature extends Post implements JavaSyntax throws NuttinHoney{
     MySignature()
     {
          Salutation();
          Name();
     }
     
     public string  Salutation()
     {
          Screen.printLn( "Sincerely,\n" );
     }
     
     public string  Name()
     {
          Screen.printLn( "Kevin Parkinson" );
     }
}
new User(Kevin.Parkinson) is offline   Reply With Quote
Old May 26th, 2005, 10:58 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
There is indeed! Although it is insanely obfuscated and complicated. Both Windows Explorer and Internet Explorer accept plugins called browser helper objects, but windows explorer has some more options. Read up on "Shell Extensions". That should point you in the right direction. However, in both cases I believe you must use COM. Nasty.
Dameon is offline   Reply With Quote
Old May 26th, 2005, 11:29 PM   #5
new User(Kevin.Parkinson)
Programmer
 
new User(Kevin.Parkinson)'s Avatar
 
Join Date: Mar 2005
Location: Edmonton, Alberta, Canada
Posts: 37
Rep Power: 0 new User(Kevin.Parkinson) is on a distinguished road
Send a message via MSN to new User(Kevin.Parkinson)
Obfuscated...COM...Ouch! - sounds like a whole lot of hard work...I like the idea of building your own Windows Explorer.
__________________
public class  MySignature extends Post implements JavaSyntax throws NuttinHoney{
     MySignature()
     {
          Salutation();
          Name();
     }
     
     public string  Salutation()
     {
          Screen.printLn( "Sincerely,\n" );
     }
     
     public string  Name()
     {
          Screen.printLn( "Kevin Parkinson" );
     }
}
new User(Kevin.Parkinson) is offline   Reply With Quote
Old May 27th, 2005, 5:01 AM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well, you can always just rename explorer.exe to explorer2.exe, make your program explorer.exe, and set the system shell to explorer2.exe.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC