Linked Questions

Popular Questions

Limitations of Windows Service on run the .exe file

Asked by At

I 'm trying to get Certificates from a external device using windows-Service . how should a handle limitations for current user?

I have an .exe file that get certificates from an extra device(Token) and it work correctly . but when it called from my windows service using WCF , it doesn't show me all certificates . Does it make a limitation for user or app?

static void LaunchCommandLineApp()
    {
        var path = AppDomain.CurrentDomain.BaseDirectory + 
        @"GetCertificate.exe";
        log.Info("LaunchCommandLineApp basePath is : " + 
        AppDomain.CurrentDomain.BaseDirectory);
        log.Info("LaunchCommandLineApp path is : " + path);
        ApplicationLoader.PROCESS_INFORMATION prcInf = new 
        ApplicationLoader.PROCESS_INFORMATION();
        ApplicationLoader.StartProcessAndBypassUAC(path + " -Verb runAs", 
        out prcInf);
        log.Info("After StartProcessAndBypassUAC");
    }

Related Questions