На главную

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 | Скачать Вниз

Low-Level Access Control Functions



You can use the following low-level functions to work with ACLs and ACEs. New Win32-based applications should use the high-level access-control functions for this purpose. For more information about the high-level functions, see Working With ACLs and ACEs.

To create an ACL using these low-level functions, allocate a buffer for the ACL and then initialize it by calling the InitializeAcl function. To add ACEs to the end of a DACL, use the AddAccessAllowedAce and AddAccessDeniedAce functions. The AddAuditAccessAce function adds an ACE to the end of a SACL. You can use the AddAce function to add one or more ACEs at a specified position in an ACL. The DeleteAce function removes an ACE from a specified position in an ACL. The GetAce function retrieves an ACE from a specified position in an ACL. The FindFirstFreeAce function retrieves a pointer to the first free byte in an ACL.

To modify an existing ACL in an object's security descriptor, use the GetSecurityDescriptorDacl or GetSecurityDescriptorSacl function to get the existing ACL. You can use the GetAce function to copy ACEs from the existing ACL. After allocating and initializing a new ACL, use functions such as AddAccessAllowedAce and AddAce to add ACEs to it. When you have finished building the new ACL, use the SetSecurityDescriptorDacl or SetSecurityDescriptorSacl function to add the new ACL to the object's security descriptor.


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

УПРАВЛЕНИЕ Доступа Low-Level Функционирует



Вы можете использовать следующие функции низкого уровня, чтобы работать с ACLs и АСАМИ. Новые базирующиеся приложения Win32 должны использовать высокоуровневый иметь доступ к-управляющим функциям с этой целью. Более подробно о высокоуровневых функциях, смотри Работу С ACLs и АСАМИ.

Для того, чтобы создавать ACL, использовавшее эти функции низкого уровня, распределите буфер для ACL затем инициализируйте это вызывая функцию InitializeAcl. Для того, чтобы добавлять ПЕР.ТОК в конец DACL, используйте AddAccessAllowedAce и функции AddAccessDeniedAce. Функция AddAuditAccessAce добавляет АСА к концу SACL. Вы можете использовать функцию AddAce, чтобы добавлять одно или более ПЕР.ТОК в определенной позиции в ACL. Функция DeleteAce удаляет АСА из определенной позиции в ACL. Функция GetAce извлекает АСА из определенной позиции в ACL. Функция FindFirstFreeAce извлекает указатель в первый свободный байт в ACL.

Для того, чтобы модифицировать существующий ACL в объектном дескрипторе безопасности, используйте GetSecurityDescriptorDacl или функцию GetSecurityDescriptorSacl, чтобы получать существующий ACL. Вы можете использовать функцию GetAce, чтобы копировать ПЕР.ТОК из существующего ACL. После распределения и инициализируя новый ACL, используйте функции как например, AddAccessAllowedAce и AddAce, чтобы добавлять ПЕР.ТОК этому. Когда Вы завершили строя новый ACL, используйте SetSecurityDescriptorDacl или функцию SetSecurityDescriptorSacl, чтобы добавлять новый ACL к объектному дескриптору безопасности.


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