Kernel Object namespaces

Source: Internet
Author: User

A remote desktop services server has multiple namespaces for the following named kernel objects: events, semaphores, mutexes, waitable timers, file-mapping objects, and job objects. there is a global namespace used primarily by services in client/server applications. in addition, each client session has a separate namespace for these objects, such as in Windows Vista.

The separate client session namespaces enable multiple clients to run the same applications without interfering with each other. for processes started under a Client Session, the system uses the session namespace by default. however, these processes can use the global namespace By prepending the "Global/" prefix to the object name. for example, the following code cballsCreateeventAnd creates an event object named csapp in the global namespace:

CreateEvent( NULL, FALSE, FALSE, "Global//CSAPP" );

Service applications in a remote desktop services environment use the global namespace by default.

Session zero is only used for hosting services, and there is no console session, unlike previous versions of Windows.

The global namespace enables processes on multiple client sessions to communicate with a service application. for example, a client/server application might use a mutex object for synchronization. the server module can create the mutex object in the global namespace. then a client session can use the "Global/" prefix to open the mutex object.

Another use of the global namespace is for applications that use named objects to detect that there is already an instance of the application running in the system running SS all sessions. this named object must be created or opened in the global namespace instead of the per-session namespace. the more common case of running the application once per session is supported by default because the named object is created in a per session namespace.

In addition to the "Global/" prefix, client processes can use the "local/" prefix to explicitly create an object in their session namespace. These keywords are case sensitive.

The "session/" prefix is reserved for system use and you shoshould not use it in names of kernel objects.

Fast User Switching is implemented by using Remote Desktop Services sessions. the first user to log on uses session one, the next user to log on uses session two, and so on. kernel Object names must follow the guidelines outlined for remote desktop services so that applications can support multiple users.

The creation of a file-mapping object in the global namespace, by usingCreatefilemapping, From a session Other than session zero is a privileged operation. because of this, an application running in an arbitrary remote desktop Session host (rd Session host) Server session must have secreateglobalprivilege enabled in order to create a file-mapping object in the global namespace successfully. the Privilege Check is limited to the creation of file-mapping objects, and does not apply to opening existing ones. for example, if a service or the system creates a file-mapping object, any process running in any session can access that file-mapping object provided that the user has the necessary access.

Http://msdn.microsoft.com/en-us/library/aa382954 (V = vs.85). aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.