Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: run services.msc ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default 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.

  2. #2

    Default Re: run services.msc ?

    Hi Jeff,

    Maybe run SC.EXE instead?

    Graham

  3. #3

    Default Re: run services.msc ?

    ....

    run('services.msc',1)

    works from Clarion

    Graham

  4. #4

    Default 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.

  5. #5

    Default 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.

  6. #6

    Default 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!"

  7. #7

    Default 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!"

  8. #8

    Default 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

  9. #9

    Default 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.

  10. #10

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •