{"action":"created","issue":{"url":"https://api.github.com/repos/murrayju/CreateProcessAsUser/issues/4","labels_url":"https://api.github.com/repos/murrayju/CreateProcessAsUser/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/murrayju/CreateProcessAsUser/issues/4/comments","events_url":"https://api.github.com/repos/murrayju/CreateProcessAsUser/issues/4/events","html_url":"https://github.com/murrayju/CreateProcessAsUser/issues/4","id":91130618,"number":4,"title":"Unhandled Exception","user":{"login":"pyed","id":1909519,"avatar_url":"https://avatars.githubusercontent.com/u/1909519?v=3","gravatar_id":"","url":"https://api.github.com/users/pyed","html_url":"https://github.com/pyed","followers_url":"https://api.github.com/users/pyed/followers","following_url":"https://api.github.com/users/pyed/following{/other_user}","gists_url":"https://api.github.com/users/pyed/gists{/gist_id}","starred_url":"https://api.github.com/users/pyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyed/subscriptions","organizations_url":"https://api.github.com/users/pyed/orgs","repos_url":"https://api.github.com/users/pyed/repos","events_url":"https://api.github.com/users/pyed/events{/privacy}","received_events_url":"https://api.github.com/users/pyed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-26T02:35:21Z","updated_at":"2015-06-27T19:05:49Z","closed_at":null,"body":"I couldn't get this to work for me, I'm new to C# so maybe I'm doing something wrong, here's the code\r\n\r\n```C#\r\nusing System;\r\nusing murrayju.ProcessExtensions;\r\n\r\nnamespace spawnproc\r\n{\r\n    class Program\r\n    {\r\n        static void Main()\r\n        {\r\n            Console.WriteLine(\"Starting calc.exe\");\r\n            ProcessExtensions.StartProcessAsCurrentUser(\"calc.exe\");\r\n        }\r\n    }\r\n}\r\n```\r\ntrying to run this will return the following error, with exit status code 255\r\n\r\n```\r\nUnhandled Exception: System.Exception: StartProcessAsCurrentUser: CreateProcessAsUser failed.\r\n\r\n   at murrayju.ProcessExtensions.ProcessExtensions.StartProcessAsCurrentUser(String appPath, String cmdLine, String workDir, Boolean visible)\r\n   at spawnproc.Program.Main()\r\n```"},"comment":{"url":"https://api.github.com/repos/murrayju/CreateProcessAsUser/issues/comments/116120895","html_url":"https://github.com/murrayju/CreateProcessAsUser/issues/4#issuecomment-116120895","issue_url":"https://api.github.com/repos/murrayju/CreateProcessAsUser/issues/4","id":116120895,"user":{"login":"pyed","id":1909519,"avatar_url":"https://avatars.githubusercontent.com/u/1909519?v=3","gravatar_id":"","url":"https://api.github.com/users/pyed","html_url":"https://github.com/pyed","followers_url":"https://api.github.com/users/pyed/followers","following_url":"https://api.github.com/users/pyed/following{/other_user}","gists_url":"https://api.github.com/users/pyed/gists{/gist_id}","starred_url":"https://api.github.com/users/pyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyed/subscriptions","organizations_url":"https://api.github.com/users/pyed/orgs","repos_url":"https://api.github.com/users/pyed/repos","events_url":"https://api.github.com/users/pyed/events{/privacy}","received_events_url":"https://api.github.com/users/pyed/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T19:05:49Z","updated_at":"2015-06-27T19:05:49Z","body":"Okay, I'm not a Windows guy, but I'm running this service that I'm executing commands from, so when I execute `whoami` I will get `nt authority/system`, but when I try to execute `spawnproc.exe` I will hit the same exception, aren't I running `spawnproc.exe` via the `nt authority/system` account which should have the privileges I need ?"}}