Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 219 of file profobj.c.
{ HAL_PROFILE_SOURCE_INFORMATION ProfileSourceInformation; ULONG ReturnLength, Interval; NTSTATUS Status; /* Check what profile this is */ if (ProfileSource == ProfileTime) { /* Return the time interval */ Interval = KiProfileTimeInterval; } else if (ProfileSource == ProfileAlignmentFixup) { /* Return the alignment interval */ Interval = KiProfileAlignmentFixupInterval; } else { /* Request it from HAL */ ProfileSourceInformation.Source = ProfileSource; Status = HalQuerySystemInformation(HalProfileSourceInformation, sizeof(HAL_PROFILE_SOURCE_INFORMATION), &ProfileSourceInformation, &ReturnLength); /* Check if HAL handled it and supports this profile */ if (NT_SUCCESS(Status) && (ProfileSourceInformation.Supported)) { /* Get the interval */ Interval = ProfileSourceInformation.Interval; } else { /* Unsupported or invalid source, fail */ Interval = 0; } } /* Return the interval we got */ return Interval; }