Windows SDK Support Team Blog

#define _WIN32_WINNT

Browse by Tags

Tagged Content List
  • Blog Post: Job Object Insanity

    Job Objects were introduced to Windows in Windows XP/Windows Server 2003 to allow an application to manage a group of processes. One of the limitations of Job Objects is that a process can only belong to a single Job object. This becomes an issue when you are attempting to manipulate a process which...
  • Blog Post: How to launch a process as a different user without storing their credentials?

    You may run into a situation where you need to create a token to be used at a later time since you can’t keep the credentials around in your application. The token representing the user is going to be used to launch a process. In the past, this would be done by generating the token with LogonUser...
  • Blog Post: RunAs Verb (Process.Start) doesn't work from a LocalSystem .NET Service

    The Process.Start method in System.Diagnostics is equivalent to CreateProcess() in Win32. If you want to launch a process as a different user, in Win32 you either need to call CreateProcessAsUser, CreateProcessWithLogonW or CreateProcessWithTokenW. In .NET using Process.Start, you can use the ...
  • Blog Post: Launching a process as a normal user from an elevated user.

    A frequent question from our customers is the ability to launch a non-elevated user from an elevated user. This can typically happen from an installer application which is elevated and you want to launch an application as a non-elevated user. It turns out you can use CreateProcessWithTokenW() to launch...
  • Blog Post: Launching an interactive process from Windows Service in Windows Vista and later

    The first thing you should do about it is that, don't do it. There are many limitations, bad implications and restrictions involved into it. In case, you are in a state that you cannot avoid launching an interactive process from Windows Service then you might want to read this article. Launching...
Page 1 of 1 (5 items)