Windows core programming Kernel Object

Source: Internet
Author: User

Each kernel object is only a memory block allocated by the kernel and can only be accessed by the kernel. the memory block is a data structure. Its members are responsible for maintaining various information about the object, because the object type is the same, but most of them are different. For example, a process object has a process ID and a basic priority, one exitCodeThe file object has a byte displacement, a shared mode, and an open mode.

 

If the Kernel Handle is passed to another process, the call of the handle value used by the other process will become invalid.

The kernel object is owned by the kernel, not the memory, so the Process Termination kernel object is not necessarily revoked.

Kernel Security

Typedef struct _ security_attributes
{
DWORD nlength;
Lpvoid lpsecuritydesriptor;
Bool binherihandle; // true indicates that the property can be inherited, and false indicates that the property cannot be inherited.
} Security_attributes;

SA. nlength = sizeof (SA );
SA. lpsecuritydesriptor = PSD;
SA. binherithandle = false;

Related Article

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.