-
run services.msc ?
I'm attempting to open services.msc via a button (yes, the button
works<g>).
None of the "run" stuff I've tried has worked.
Any clues? Thanks.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
-
Re: run services.msc ?
Hi Jeff,
Maybe run SC.EXE instead?
Graham
-
Re: run services.msc ?
....
run('services.msc',1)
works from Clarion
Graham
-
Re: run services.msc ?
Thanks. I'll try it from my SBUtil.dll instead.
Would be nice if I could do this inside SB, though. I'm sure there's a
trick. :)
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
-
Re: run services.msc ?
If I run it from my DLL, I get ErrorCode() 193 "Unknown Error Posted".
If I use the SB RUN, %SB_RETURN% is 0 the first time I call it, then
1. But no services.msc.
Could it be that it's an elevated process?
If I call services.msc from an elevated command prompt it works, just
like it does from a non-elevated command prompt.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
-
Re: run services.msc ?
Jeff,
> If I run it from my DLL, I get ErrorCode() 193 "Unknown Error Posted".
From WinError.h
//
// MessageId: ERROR_BAD_EXE_FORMAT
//
// MessageText:
//
// %1 is not a valid Win32 application.
//
#define ERROR_BAD_EXE_FORMAT 193L
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"
-
Re: run services.msc ?
Jeff,
> If I run it from my DLL, I get ErrorCode() 193 "Unknown Error Posted".
You'll need the MMC container, are you running MMC services.msc?
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"
-
Re: run services.msc ?
Hi Lee, Jeff,
All I have in the Clarion 10 project I tested with is this...
PROGRAM
MAP
END
CODE
run('services.msc',1)
and it runs both from the IDE and standalone with no manifest, no
elevation nothing.
(Windows 8.1 Clairon 10 Build 12567)
Graham
-
Re: run services.msc ?
What if you run your app elevated?
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
-
Re: run services.msc ?
Hi Jeff,
It runs and displays the service manager elevated or non-elevated.
Are you running this on a network maybe?
Graham