ExSetLeapSecondEnabled
__int64 __fastcall ExSetLeapSecondEnabled(char a1){
NTSTATUS LeapSecondDataRegistryKeyHandle;
UINT64 DataSize;
_BOOL4 Data;
VOID *KeyHandle;
Data = 0;
KeyHandle = 0i64;
LeapSecondDataRegistryKeyHandle = ExpGetLeapSecondDataRegistryKeyHandle(&KeyHandle);
if( LeapSecondDataRegistryKeyHandle >= 0 )
{
LODWORD(DataSize) = 4;
Data = a1 != 0;
LeapSecondDataRegistryKeyHandle = ZwSetValueKey(
KeyHandle,
(_UNICODE_STRING *)&ExpLeapSecondRegkeyValueEnabled,
0i64,
4ui64,
&Data,
DataSize);
}
if( KeyHandle )
ZwClose((_HANDLE)KeyHandle);
return(unsigned int)LeapSecondDataRegistryKeyHandle;
}Referenced by:
NtSetSystemInformation