29 _Out_opt_ PULONG DataSize
38 data = PhAllocate(dataSize);
42 bufferSize = dataSize;
43 result = RegQueryValueEx(Key, ValueName, NULL, NULL, data, &bufferSize);
45 if (result == ERROR_MORE_DATA)
49 data = PhAllocate(dataSize);
57 if (result == ERROR_SUCCESS)
89 index = _wtoi(textData);
123 index = _wtoi(textData);
128 textData += length + 1;
131 textSr.
Length = length *
sizeof(WCHAR);
147 PVOID textData = NULL;
152 PPERF_DATA_BLOCK block;
153 PPERF_OBJECT_TYPE objectType;
166 if (memcmp(block->Signature, L
"PERF",
sizeof(WCHAR) * 4) != 0)
169 objectType = (PPERF_OBJECT_TYPE)((PCHAR)block + block->HeaderLength);
174 for (i = 0; i < block->NumObjectTypes; i++)
176 PWSTR objectTypeName;
189 if (infoCount == infoAllocated)
195 infoMember = &info[infoCount++];
196 infoMember->
NameIndex = objectType->ObjectHelpTitleIndex;
202 objectType = (PPERF_OBJECT_TYPE)((PCHAR)objectType + objectType->TotalByteLength);
228 _Out_opt_ PVOID *TextData
232 PVOID textData = NULL;
248 remainingPart = *NameList;
250 while (remainingPart.
Length != 0)
264 if (infoCount == infoAllocated)
270 infoMember = &info[infoCount++];
272 infoMember->
Name = part;
284 *TextData = textData;