@@ -908,7 +908,7 @@ VOID CALLBACK PvSymbolTreeUpdateCallback(
908
908
TreeNew_NodesStructured (Context -> TreeNewHandle );
909
909
TreeNew_SetRedraw (Context -> TreeNewHandle , TRUE);
910
910
911
- ChangeTimerQueueTimer ( NULL , Context -> UpdateTimer , 1000 , INFINITE );
911
+ RtlUpdateTimer ( Context -> TimerQueueHandle , Context -> UpdateTimerHandle , 1000 , INFINITE );
912
912
}
913
913
914
914
INT_PTR CALLBACK PvpSymbolsDlgProc (
@@ -958,26 +958,29 @@ INT_PTR CALLBACK PvpSymbolsDlgProc(
958
958
959
959
context -> SearchThreadHandle = PhCreateThread (0 , PeDumpFileSymbols , context );
960
960
961
- if (CreateTimerQueueTimer (
962
- & treeNewTimer ,
963
- NULL ,
964
- PvSymbolTreeUpdateCallback ,
965
- context ,
966
- 1000 ,
967
- 1000 ,
968
- 0
969
- ))
961
+ if (NT_SUCCESS (RtlCreateTimerQueue (& context -> TimerQueueHandle )))
970
962
{
971
- context -> UpdateTimer = treeNewTimer ;
963
+ RtlCreateTimer (
964
+ context -> TimerQueueHandle ,
965
+ & context -> UpdateTimerHandle ,
966
+ PvSymbolTreeUpdateCallback ,
967
+ context ,
968
+ 0 ,
969
+ 1000 ,
970
+ 0
971
+ );
972
972
}
973
973
974
974
EnableThemeDialogTexture (hwndDlg , ETDT_ENABLETAB );
975
975
}
976
976
break ;
977
977
case WM_DESTROY :
978
978
{
979
- if (context -> UpdateTimer )
980
- DeleteTimerQueueTimer (NULL , context -> UpdateTimer , NULL );
979
+ if (context -> UpdateTimerHandle )
980
+ RtlDeleteTimer (context -> TimerQueueHandle , context -> UpdateTimerHandle , NULL );
981
+
982
+ if (context -> TimerQueueHandle )
983
+ RtlDeleteTimerQueue (context -> TimerQueueHandle );
981
984
982
985
NtClose (context -> SearchThreadHandle );
983
986
0 commit comments