Initial import
This commit is contained in:
25
libc/nt/struct/imageresourcedirectoryentry.h
Normal file
25
libc/nt/struct/imageresourcedirectoryentry.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORYENTRY_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORYENTRY_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtImageResourceDirectoryEntry {
|
||||
/* TODO(jart): No bitfields. */
|
||||
union {
|
||||
struct {
|
||||
uint32_t NameOffset : 31;
|
||||
uint32_t NameIsString : 1;
|
||||
};
|
||||
uint32_t Name;
|
||||
uint16_t Id;
|
||||
};
|
||||
union {
|
||||
uint32_t OffsetToData;
|
||||
struct {
|
||||
uint32_t OffsetToDirectory : 31;
|
||||
uint32_t DataIsDirectory : 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORYENTRY_H_ */
|
||||
Reference in New Issue
Block a user