-
Notifications
You must be signed in to change notification settings - Fork 0
/
CentennialHelper.au3
145 lines (101 loc) · 4.86 KB
/
CentennialHelper.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.5
Author: Alexander Samuelsson
Script Function:
CentennialHelper.dll UDF
#ce ----------------------------------------------------------------------------
;~ CreationCollisionOption
Global Enum $eGenerateUniqueName, $eReplaceExisting, $eFailIfExists, $eOpenIfExists
;~ StartupTaskState
Global Enum $eStateError = -1, $eStateDisabled, $eStateDisabledByUser, $eStateEnabled, $eStateDisabledByPolicy, $eStateEnabledByPolicy
Global $hDLL = DllOpen(@ScriptDir & "\CentennialHelper.dll")
Func _LocalCacheFolder()
Return DllCall($hDLL, "WSTR:cdecl", "ApplicationDataLocalCacheFolder")
EndFunc
Func _LocalFolder()
Return DllCall($hDLL, "WSTR:cdecl", "ApplicationDataLocalFolder")
EndFunc
Func _LocalDeleteContainer($sContainer)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataLocalDeleteContainer", "WSTR", $sContainer)
EndFunc
Func _LocalExistContainer($sContainer)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataLocalExistContainer", "WSTR", $sContainer)
EndFunc
Func _LocalSettingsExist($sSetting, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataLocalSettingsExist", "WSTR", $sSetting, "WSTR", $sContainer)
EndFunc
Func _LocalSettingsInsert($sSetting, $sValue, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataLocalSettingsInsert", "WSTR", $sSetting, "WSTR", $sValue, "WSTR", $sContainer)
EndFunc
Func _LocalSettingsRemove($sSetting, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataLocalSettingsRemove", "WSTR", $sSetting, "WSTR", $sContainer)
EndFunc
Func _LocalSettingsValues($hCallback, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataLocalSettingsValues", "PTR", DllCallbackGetPtr($hCallback), "WSTR", $sContainer)
EndFunc
Func _RoamingDataChanged($hCallback)
Return DllCall($hDLL, "NONE:cdecl", "ApplicationDataRoamingDataChanged", "PTR", DllCallbackGetPtr($hCallback))
EndFunc
Func _RoamingFolder()
Return DllCall($hDLL, "WSTR:cdecl", "ApplicationDataRoamingFolder")
EndFunc
Func _RoamingFolderWrite($sFileName, $iFileOption, $sValue)
Return DllCall($hDLL, "NONE:cdecl", "ApplicationDataRoamingFolderWrite", "WSTR", $sFileName, "INT", $iFileOption, "WSTR", $sValue)
EndFunc
Func _RoamingStorageQuota()
Return DllCall($hDLL, "UINT64:cdecl", "ApplicationDataRoamingStorageQuota")
EndFunc
Func _RoamingDeleteContainer($sContainer)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataRoamingDeleteContainer", "WSTR", $sContainer)
EndFunc
Func _RoamingExistContainer($sContainer)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataRoamingExistContainer", "WSTR", $sContainer)
EndFunc
Func _RoamingSettingsExist($sSetting, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataRoamingSettingsExist", "WSTR", $sSetting, "WSTR", $sContainer)
EndFunc
Func _RoamingSettingsInsert($sSetting, $sValue, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataRoamingSettingsInsert", "WSTR", $sSetting, "WSTR", $sValue, "WSTR", $sContainer)
EndFunc
Func _RoamingSettingsRemove($sSetting, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataRoamingSettingsRemove", "WSTR", $sSetting, "WSTR", $sContainer)
EndFunc
Func _RoamingSettingsValues($hCallback, $sContainer = Null)
Return DllCall($hDLL, "BOOLEAN:cdecl", "ApplicationDataRoamingSettingsValues", "PTR", DllCallbackGetPtr($hCallback), "WSTR", $sContainer)
EndFunc
Func _TemporaryFolder()
Return DllCall($hDLL, "WSTR:cdecl", "ApplicationDataTemporaryFolder")
EndFunc
;~ Func _StartupTaskDisable()
;~ Return DllCall($hDLL, "INT:cdecl", "StartupTaskDisable")
;~ EndFunc
;~ Func _StartupTaskEnable()
;~ Return DllCall($hDLL, "INT:cdecl", "StartupTaskEnable")
;~ EndFunc
;~ Func _StartupTaskStatus()
;~ ConsoleWrite("not working" & @CRLF)
;~ MsgBox()
;~ Exit
;~ Return DllCall($hDLL, "INT:cdecl", "StartupTaskStatus")
;~ EndFunc
Func _StartupTaskDisableByID($sTaskID)
Return DllCall($hDLL, "INT:cdecl", "StartupTaskDisableByID", "WSTR", $sTaskID)
EndFunc
Func _StartupTaskDisableByIndex($iTaskIndex)
Return DllCall($hDLL, "INT:cdecl", "StartupTaskDisableByIndex", "INT", $iTaskIndex)
EndFunc
Func _StartupTaskEnableByID($sTaskID)
Return DllCall($hDLL, "INT:cdecl", "StartupTaskEnableByID", "WSTR", $sTaskID)
EndFunc
Func _StartupTaskEnableByIndex($iTaskIndex)
Return DllCall($hDLL, "INT:cdecl", "StartupTaskEnableByIndex", "INT", $iTaskIndex)
EndFunc
Func _StartupTaskStatusByID($sTaskID)
Return DllCall($hDLL, "INT:cdecl", "StartupTaskStatusByID", "WSTR", $sTaskID)
EndFunc
Func _StartupTaskStatusByIndex($iTaskIndex)
Return DllCall($hDLL, "INT:cdecl", "StartupTaskStatusByIndex", "INT", $iTaskIndex)
EndFunc
Func _ToastTest($sTitle, $sContent, $sArg)
Return DllCall($hDLL, "NONE:cdecl", "ToastTest", "WSTR", $sTitle, "WSTR", $sContent, "WSTR", $sArg)
EndFunc