40 _T(
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\Setup"));
56 _T(
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\Setup"),
61 for (dwIndex = 0; ; dwIndex++)
63 dwSize =
sizeof(szAppPath);
75 if (dwType !=
REG_SZ)
continue;
125 while (*lpCmd && *lpCmd !=
_T(
'/') && *lpCmd !=
_T(
'-')) lpCmd++;
127 if (*++lpCmd ==
_T(
'r')) bRunApps =
TRUE;
134 _T(
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce"),
139 for (dwIndex = 0; ; dwIndex++)
141 dwSize =
sizeof(szAppPath);
155 if (dwType !=
REG_SZ)
continue;
static VOID InitDialog(HWND hDlg)
static DWORD WINAPI StartApplication(LPVOID lpDlg)
static INT_PTR CALLBACK RunOnceDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
#define RegCloseKey(hKey)
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)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static HANDLE ULONG_PTR dwData
DWORD WINAPI WaitForSingleObjectEx(IN HANDLE hHandle, IN DWORD dwMilliseconds, IN BOOL bAlertable)
_In_ WDFCOLLECTION _In_ ULONG Index
#define STARTF_USESHOWWINDOW
#define HKEY_LOCAL_MACHINE
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)