static VOID NTAPI SystemInformationInitializingCallback( _In_opt_ PVOID Parameter, _In_opt_ PVOID Context ) { PPH_PLUGIN_SYSINFO_POINTERS pluginEntry = (PPH_PLUGIN_SYSINFO_POINTERS)Parameter; for (ULONG i = 0; i < DiskDrivesList->Count; i++) { PPH_DISK_ENTRY entry = (PPH_DISK_ENTRY)DiskDrivesList->Items[i]; DiskDriveSysInfoInitializing(pluginEntry, entry); } }
VOID NTAPI SystemInformationInitializingCallback( _In_opt_ PVOID Parameter, _In_opt_ PVOID Context ) { PPH_PLUGIN_SYSINFO_POINTERS pluginEntry = (PPH_PLUGIN_SYSINFO_POINTERS)Parameter; // Disk Drives PhAcquireQueuedLockShared(&DiskDrivesListLock); for (ULONG i = 0; i < DiskDrivesList->Count; i++) { PDV_DISK_ENTRY entry = PhReferenceObjectSafe(DiskDrivesList->Items[i]); if (!entry) continue; if (entry->DevicePresent) { DiskDriveSysInfoInitializing(pluginEntry, entry); } } PhReleaseQueuedLockShared(&DiskDrivesListLock); // Network Adapters PhAcquireQueuedLockShared(&NetworkAdaptersListLock); for (ULONG i = 0; i < NetworkAdaptersList->Count; i++) { PDV_NETADAPTER_ENTRY entry = PhReferenceObjectSafe(NetworkAdaptersList->Items[i]); if (!entry) continue; if (entry->DevicePresent) { NetAdapterSysInfoInitializing(pluginEntry, entry); } } PhReleaseQueuedLockShared(&NetworkAdaptersListLock); // Graphics cards NvGpuSysInfoInitializing(pluginEntry); }