Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Caps Lock Pin
PJ Arends28-Feb-04 9:23
professionalPJ Arends28-Feb-04 9:23 
Generalflickering of controls Pin
JWood28-Feb-04 6:00
JWood28-Feb-04 6:00 
GeneralRe: flickering of controls Pin
alex.barylski28-Feb-04 10:36
alex.barylski28-Feb-04 10:36 
GeneralToolbar and transparent icons problem Pin
NodeX28-Feb-04 4:13
NodeX28-Feb-04 4:13 
Generalleft button mouse lock Pin
jmb2428-Feb-04 4:11
jmb2428-Feb-04 4:11 
GeneralRe: left button mouse lock Pin
PJ Arends28-Feb-04 9:52
professionalPJ Arends28-Feb-04 9:52 
Generalremote process creation Pin
Rubin Boban28-Feb-04 0:44
Rubin Boban28-Feb-04 0:44 
GeneralRe: remote process creation Pin
Antti Keskinen28-Feb-04 1:36
Antti Keskinen28-Feb-04 1:36 
Basically, yes, and no.

For example, if you had a computer on the network that has a program MyRunThis installed, and the folder in which the application is was shared, you could start the program by using ShellExec and a command string "\\computer_name\folder\MyRunThis.exe".

In order to run a program on a remote computer, it must be made available by some way. This means that if the target computer's application's folder is not shared or registered as a DCOM server, you cannot start it. This is a security issue, thus making it impossible to execute malicious code without a clear security vulnerability first available.

If the computer resides on a LAN, it shouldn't be a big problem for you to share the target folder, then use ShellExecute to start it. If you have access to the application's source code, register it to support Automation, and this will allow you to create an instance of the application by calling CoCreateInstance.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
Generala printing question Pin
saibetty27-Feb-04 23:59
saibetty27-Feb-04 23:59 
GeneralRe: a printing question Pin
Gary R. Wheeler28-Feb-04 6:41
Gary R. Wheeler28-Feb-04 6:41 
GeneralRe: a printing question Pin
saibetty10-Mar-04 21:28
saibetty10-Mar-04 21:28 
GeneralRe: a printing question Pin
Steve S1-Mar-04 6:44
Steve S1-Mar-04 6:44 
Questionglobalalloc = RAM? Pin
shinay27-Feb-04 22:25
shinay27-Feb-04 22:25 
AnswerRe: globalalloc = RAM? Pin
Antti Keskinen28-Feb-04 1:23
Antti Keskinen28-Feb-04 1:23 
QuestionHow I can embed an ActiveX control in the file dialog? Pin
quantum198127-Feb-04 21:15
quantum198127-Feb-04 21:15 
GeneralCButton & CReBar Pin
Bitzer.bit27-Feb-04 21:08
Bitzer.bit27-Feb-04 21:08 
GeneralRe: CButton & CReBar Pin
Antti Keskinen28-Feb-04 1:39
Antti Keskinen28-Feb-04 1:39 
GeneralRe: CButton & CReBar Pin
Bitzer.bit28-Feb-04 2:20
Bitzer.bit28-Feb-04 2:20 
GeneralRe: CButton & CReBar Pin
Antti Keskinen29-Feb-04 2:18
Antti Keskinen29-Feb-04 2:18 
GeneralDetecting the insertion/removal of removable storage Pin
mmica27-Feb-04 20:35
mmica27-Feb-04 20:35 
GeneralRe: Detecting the insertion/removal of removable storage Pin
Antti Keskinen28-Feb-04 4:06
Antti Keskinen28-Feb-04 4:06 
GeneralRe: Detecting the insertion/removal of removable storage Pin
Michael Dunn28-Feb-04 16:23
sitebuilderMichael Dunn28-Feb-04 16:23 
QuestionHow to pass safearray in a DLL Pin
ritu_kwatra27-Feb-04 20:05
ritu_kwatra27-Feb-04 20:05 
AnswerRe: How to pass safearray in a DLL Pin
SiddharthAtw3-Mar-04 18:09
SiddharthAtw3-Mar-04 18:09 
GeneralRe: How to pass safearray in a DLL Pin
ritu_kwatra3-Mar-04 18:38
ritu_kwatra3-Mar-04 18:38 

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.