ReactOS 0.4.16-dev-338-g34e76ad
|
#include <stdio.h>
#include <windows.h>
Go to the source code of this file.
Classes | |
struct | op_mask |
structure holding startup flags More... | |
Macros | |
#define | INVALID_RUNCMD_RETURN -1 |
#define | DEFAULT SESSION_START |
Enumerations | |
enum | runkeys { RUNKEY_RUN , RUNKEY_RUNONCE , RUNKEY_RUNSERVICES , RUNKEY_RUNSERVICESONCE } |
Functions | |
EXTERN_C HRESULT WINAPI | SHCreateSessionKey (REGSAM samDesired, PHKEY phKey) |
static BOOL | wininit () |
static BOOL | pendingRename () |
static int | runCmd (LPWSTR cmdline, LPCWSTR dir, BOOL wait, BOOL minimized) |
static BOOL | ProcessRunKeys (HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete, BOOL bSynchronous) |
int | startup (int argc, const char *argv[]) |
Variables | |
const WCHAR | runkeys_names [][30] |
static const struct op_mask | SESSION_START = {FALSE, FALSE, TRUE, TRUE, TRUE, TRUE} |
static const struct op_mask | SETUP = {FALSE, FALSE, FALSE, TRUE, TRUE, TRUE} |
#define DEFAULT SESSION_START |
|
static |
Definition at line 69 of file startup.c.
Referenced by startup().
|
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 289 of file startup.c.
Referenced by startup().
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 240 of file startup.c.
Referenced by ProcessRunKeys().
Definition at line 147 of file shellreg.c.
Referenced by startup().
Definition at line 430 of file startup.c.
|
static |