2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_
|
2023-07-28 06:17:34 -07:00
|
|
|
#include "libc/mem/alloca.h"
|
2020-11-28 12:01:51 -08:00
|
|
|
#include "libc/nt/struct/securitydescriptor.h"
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
struct NtSecurityAttributes {
|
|
|
|
uint32_t nLength;
|
|
|
|
struct NtSecurityDescriptor *lpSecurityDescriptor;
|
|
|
|
bool32 bInheritHandle;
|
|
|
|
};
|
|
|
|
|
2024-08-26 16:44:05 -07:00
|
|
|
const char *_DescribeNtSecurityAttributes(char[32],
|
|
|
|
const struct NtSecurityAttributes *);
|
2023-07-28 06:17:34 -07:00
|
|
|
#define DescribeNtSecurityAttributes(x) \
|
2024-08-26 16:44:05 -07:00
|
|
|
_DescribeNtSecurityAttributes(alloca(32), x)
|
2022-08-13 13:11:56 -07:00
|
|
|
|
2020-06-15 07:18:57 -07:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ */
|