ReactOS 0.4.16-dev-36-g301675c
|
#include "precomp.h"
Go to the source code of this file.
Macros | |
#define | INVALID_RUNCMD_RETURN -1 |
Functions | |
static int | runCmd (LPWSTR cmdline, LPCWSTR dir, BOOL wait, BOOL minimized) |
static BOOL | ProcessRunKeys (HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete, BOOL bSynchronous) |
static BOOL | ProcessRunOnceEx (HKEY hkRoot) |
static BOOL | AutoStartupApplications (INT nCSIDL_Folder) |
INT | ProcessStartupItems (BOOL bRunOnce) |
VOID | ReleaseStartupMutex () |
static BOOL | InitializeStartupMutex () |
BOOL | DoStartStartupItems (ITrayWindow *Tray) |
VOID | ProcessRunOnceItems () |
Variables | |
static HANDLE | s_hStartupMutex = NULL |
#define INVALID_RUNCMD_RETURN -1 |
Definition at line 48 of file startup.cpp.
Definition at line 384 of file startup.cpp.
Referenced by ProcessStartupItems().
BOOL DoStartStartupItems | ( | ITrayWindow * | Tray | ) |
Definition at line 549 of file startup.cpp.
Referenced by StartWithDesktop().
|
static |
Definition at line 523 of file startup.cpp.
Referenced by DoStartStartupItems(), and ProcessRunOnceItems().
|
static |
Process a "Run" type registry key. hkRoot is the HKEY from which "Software\Microsoft\Windows\CurrentVersion" is opened. szKeyName is the key holding the actual entries. bDelete tells whether we should delete each value right before executing it. bSynchronous tells whether we should wait for the prog to complete before going on to the next prog.
Definition at line 136 of file startup.cpp.
Referenced by ProcessStartupItems().
Process "RunOnceEx" type registry key. rundll32.exe will be invoked if the corresponding key has items inside, and wait for it. hkRoot is the HKEY from which "Software\Microsoft\Windows\CurrentVersion\RunOnceEx" is opened.
Definition at line 328 of file startup.cpp.
Referenced by ProcessStartupItems().
VOID ProcessRunOnceItems | ( | ) |
Definition at line 453 of file startup.cpp.
VOID ReleaseStartupMutex | ( | ) |
Definition at line 513 of file startup.cpp.
Referenced by DoFinishStartupItems(), InitializeStartupMutex(), and StartWithDesktop().
This function runs the specified command in the specified dir. [in,out] cmdline - the command line to run. The function may change the passed buffer. [in] dir - the dir to run the command in. If it is NULL, then the current dir is used. [in] wait - whether to wait for the run program to finish before returning. [in] minimized - Whether to ask the program to run minimized.
Returns: If running the process failed, returns INVALID_RUNCMD_RETURN. Use GetLastError to get the error code. If wait is FALSE - returns 0 if successful. If wait is TRUE - returns the program's return value.
Definition at line 61 of file startup.cpp.
Referenced by AutoStartupApplications(), ProcessRunKeys(), and ProcessRunOnceEx().
Definition at line 46 of file startup.cpp.
Referenced by InitializeStartupMutex(), and ReleaseStartupMutex().