Go to the source code of this file.
◆ _tWinMain()
Definition at line 113 of file runonce.c.
114{
122
123 while (*lpCmd)
124 {
125 while (*lpCmd && *lpCmd !=
_T(
'/') && *lpCmd !=
_T(
'-')) lpCmd++;
126 if (!*lpCmd) break;
127 if (*++lpCmd ==
_T(
'r')) bRunApps =
TRUE;
128 lpCmd++;
129 }
130
131 if (bRunApps)
132 {
134 _T(
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce"),
135 0,
138 {
139 for (dwIndex = 0; ; dwIndex++)
140 {
141 dwSize =
sizeof(szAppPath);
143
145 dwIndex,
146 szAppPath,
149 &dwType,
152 {
154
155 if (dwType !=
REG_SZ)
continue;
156
161
163 continue;
164
166
169 }
170 }
171
173 }
174
175 return 1;
176 }
177
179
180 return 0;
181}
static INT_PTR CALLBACK RunOnceDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
#define RegCloseKey(hKey)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static HANDLE ULONG_PTR dwData
DWORD WINAPI WaitForSingleObjectEx(IN HANDLE hHandle, IN DWORD dwMilliseconds, IN BOOL bAlertable)
#define STARTF_USESHOWWINDOW
#define HKEY_LOCAL_MACHINE
◆ InitDialog()
Definition at line 49 of file runonce.c.
50{
54
56 _T(
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\Setup"),
57 0,
60 {
61 for (dwIndex = 0; ; dwIndex++)
62 {
63 dwSize =
sizeof(szAppPath);
65
67 dwIndex,
68 szAppPath,
71 &dwType,
74 {
75 if (dwType !=
REG_SZ)
continue;
76
78 }
79 }
80
82 }
83
85 0,
88 0,
90}
static DWORD WINAPI StartApplication(LPVOID lpDlg)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
Referenced by RunOnceDlgProc().
◆ RunOnceDlgProc()
Definition at line 95 of file runonce.c.
96{
98 {
101 break;
102
105 break;
106 }
107
108 return 0;
109}
static VOID InitDialog(HWND hDlg)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by _tWinMain().
◆ StartApplication()
Definition at line 13 of file runonce.c.
14{
20
22 {
24
29
31 continue;
32
34
37 }
38
40 _T(
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\Setup"));
41
43
44 return 0;
45}
_In_ WDFCOLLECTION _In_ ULONG Index
Referenced by InitDialog().