На главную

On-line справка по Win32 API

Написать письмо
БЕСПЛАТНАЯ ежедневная online лотерея! Выигрывай каждый день БЕСПЛАТНО!
Список всех статей A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z | Скачать Вниз

SetKernelObjectSecurity



The SetKernelObjectSecurity function sets the security of a kernel object. For example, this can be a process, thread, or event.

BOOL SetKernelObjectSecurity(

HANDLE Handle, // handle of object
SECURITY_INFORMATION SecurityInformation, // type of information to set
PSECURITY_DESCRIPTOR SecurityDescriptor // address of security descriptor
);


Parameters

Handle

Identifies a kernel object for which security information is set.

SecurityInformation

Specifies a SECURITY_INFORMATION structure identifying the contents of the security descriptor pointed to by the SecurityDescriptor parameter.

SecurityDescriptor

Points to a SECURITY_DESCRIPTOR structure containing the new security information.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The SetKernelObjectSecurity function is successful only if the following conditions are met:

· If the object's owner is being set, the calling process must have either WRITE_OWNER permission or be the object's owner.
· If the object's discretionary access-control list (ACL) is being set, the calling process must have either WRITE_DAC permission or be the object's owner.
· If the object's system ACL is being set, the SE_SECURITY_NAME privilege must be enabled for the calling process.



See Also

GetKernelObjectSecurity, SECURITY_DESCRIPTOR, SECURITY_INFORMATION, SetFileSecurity, SetPrivateObjectSecurity, SetUserObjectSecurity


Пригласи друзей и счет твоего мобильника всегда будет положительным!
Предыдущая статья
 
Сайт Народ.Ру Интернет
Следующая статья
Пригласи друзей и счет твоего мобильника всегда будет положительным!

SetKernelObjectSecurity



Функция SetKernelObjectSecurity устанавливает безопасность объекта зерна. Например, это может быть процессом, резьбой, или случаем.

BOOL SetKernelObjectSecurity(

РУЧКА РУЧКИ, // ручки объекта SECURITY_INFORMATION SecurityInformation, // типа информации, чтобы устанавливать адрес PSECURITY_DESCRIPTOR SecurityDescriptor // дескриптора безопасности
);


Параметры

Ручка

Идентифицирует объект зерна для которого информация безопасности установлена.

SecurityInformation

Определяет структуру SECURITY_INFORMATION опознавая содержание дескриптора безопасности указывался, чтобы параметром SecurityDescriptor.

SecurityDescriptor

Точки на структуру SECURITY_DESCRIPTOR, содержащие новую информацию безопасности.



Обратные Величины

Если функция добивается успеха, обратная величина ненулевая.
Если функция терпит неудачу, обратная величина нулевая. Для того, чтобы расширять информацию ошибки, назовите GetLastError.

Замечания

Функция SetKernelObjectSecurity имеет успех только если следующие условия выполнены:

Если объектный владелец установленн, вызов процесса должен иметь или разрешение WRITE_OWNER или будет объектный владелец.
Если объектный дискреционный иметь доступ к-управляющему списку (ACL), установленн, вызов процесса должен иметь или разрешение WRITE_DAC или будет объектный владелец.
Если объектная система ACL установленн, привилегия SE_SECURITY_NAME должна быть приспособлена для вызова процесса.



Смотри Также

GetKernelObjectSecurity, SECURITY_DESCRIPTOR, SECURITY_INFORMATION, SetFileSecurity, SetPrivateObjectSecurity, SetUserObjectSecurity


Вверх Version 1.3, Oct 26 2010 © 2007, 2010, mrhx Вверх
 mrhx software  Русский перевод OpenGL  Русский перевод Win32 API
 
Используются технологии uCoz