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