38{
43 PDWORD NodeBegin, NodeMiddle;
49
50
52
53
56 {
58 CurrentChar = &ComputerName[0];
60 {
61 NodeId[
Size] ^= *CurrentChar;
62 ++CurrentChar;
63
64
66 {
68 }
69 }
70 }
71
72
73 NodeBegin = (
DWORD *)&NodeId[0];
74 NodeMiddle = (
DWORD *)&NodeId[2];
75
76
78 {
79 *NodeMiddle = *NodeMiddle ^ PerformanceCount.
u.HighPart ^ PerformanceCount.
u.LowPart;
80
81 dwValue = PerformanceCount.
u.HighPart ^ PerformanceCount.
u.LowPart ^ *NodeBegin;
82 }
83 else
84 {
85 dwValue = *NodeBegin;
86 }
87
88 *NodeBegin = *NodeBegin ^ dwValue;
89 *NodeMiddle = *NodeMiddle ^ *NodeBegin;
90
91
92 MemoryStatus.
dwLength =
sizeof(MemoryStatus);
94
96 *NodeMiddle = *NodeMiddle ^ MemoryStatus.
dwTotalPhys;
100
101
103 {
104 *NodeBegin = *NodeBegin ^ Luid.
LowPart;
105 *NodeMiddle = *NodeMiddle ^ Luid.
HighPart;
106 }
107
108
110
111
113 {
118 }
119
120
121
122
123
124
125 NodeId[0] |= 0x80u;
126}
BOOL WINAPI AllocateLocallyUniqueId(PLUID Luid)
BOOL WINAPI GetDiskFreeSpaceExW(IN LPCWSTR lpDirectoryName OPTIONAL, OUT PULARGE_INTEGER lpFreeBytesAvailableToCaller, OUT PULARGE_INTEGER lpTotalNumberOfBytes, OUT PULARGE_INTEGER lpTotalNumberOfFreeBytes)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
BOOL WINAPI QueryPerformanceCounter(OUT PLARGE_INTEGER lpPerformanceCount)
VOID NTAPI GlobalMemoryStatus(LPMEMORYSTATUS lpBuffer)
BOOL WINAPI SHIM_OBJ_NAME() GetComputerNameA(LPSTR lpBuffer, LPDWORD lpnSize)
struct _LARGE_INTEGER::@2302 u
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define MAX_COMPUTERNAME_LENGTH
_Must_inspect_result_ _In_ PHYSICAL_ADDRESS _In_ PHYSICAL_ADDRESS _In_ SIZE_T TotalBytes