https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2d9673c68fd6ce9d8749a…
commit 2d9673c68fd6ce9d8749aac0ed3c6bf04c1ba32a
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Wed Feb 27 09:02:30 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Fri Mar 1 08:22:47 2019 +0100
[NTOSKRNL] Introduce the UUID_CACHED_VALUES_STRUCT structure
Source:
https://blog.48bits.com/el-codigo-ntoskvinci/
---
ntoskrnl/ex/uuid.c | 1 +
ntoskrnl/include/internal/ex.h | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/ntoskrnl/ex/uuid.c b/ntoskrnl/ex/uuid.c
index 60103f04b4..459b957270 100644
--- a/ntoskrnl/ex/uuid.c
+++ b/ntoskrnl/ex/uuid.c
@@ -41,6 +41,7 @@ static UCHAR UuidSeed[SEED_BUFFER_SIZE];
static ULONG UuidCount;
static LARGE_INTEGER LuidIncrement;
static LARGE_INTEGER LuidValue;
+UUID_CACHED_VALUES_STRUCT ExpUuidCachedValues = { 0ULL, 0xFFFFFFFF, 0, 0, { 0x80, 0x6E,
0x6F, 0x6E, 0x69, 0x63 } };
/* FUNCTIONS ****************************************************************/
diff --git a/ntoskrnl/include/internal/ex.h b/ntoskrnl/include/internal/ex.h
index 2eaf8d2da0..2072a6a31c 100644
--- a/ntoskrnl/include/internal/ex.h
+++ b/ntoskrnl/include/internal/ex.h
@@ -167,6 +167,15 @@ ExGetPoolTagInfo(
IN OUT PULONG ReturnLength OPTIONAL
);
+typedef struct _UUID_CACHED_VALUES_STRUCT
+{
+ ULONGLONG Time;
+ LONG AllocatedCount;
+ UCHAR ClockSeqHiAndReserved;
+ UCHAR ClockSeqLow;
+ UCHAR NodeId [ 6 ] ;
+} UUID_CACHED_VALUES_STRUCT, *PUUID_CACHED_VALUES_STRUCT;
+
/* INITIALIZATION FUNCTIONS *************************************************/
INIT_FUNCTION