18 WCHAR FirstCharList[] = {
L'-',
L'/'};
22 if (argvOption[0] == FirstCharList[
i])
24 return StrCmpIW(argvOption + 1, szOptToMacth) == 0;
73 for (
int i = 0;
i < argcLeft;
i++)
128 for (; argcLeft; ++argi, --argcLeft)
132 else if (!
StrCmpIW(argvLeft[argi],
L"/K"))
179 if (
name[
i++] ==
'\\')
225 for (
int i = 0;
i < argcLeft;
i++)
231 while (CurrentListPosition)
256 for (
int i = 0;
i < argcLeft;
i++)
349 if (
argc == 1 || bAppwizMode)
359 for (
int wait = 2500, inter = 250; wait > 0; wait -= inter)
void ConPuts(FILE *fp, LPCWSTR psz)
#define ConInitStdStreams()
void ConPrintf(FILE *fp, LPCWSTR psz,...)
void ConResPrintf(FILE *fp, UINT nID,...)
void ConResPuts(FILE *fp, UINT nID)
BOOL GetStorageDirectory(CStringW &lpDirectory)
BOOL SearchPatternMatch(LPCWSTR szHaystack, LPCWSTR szNeedle)
#define IDS_CMD_FIND_RESULT_FOR
#define IDS_AINFO_VERSION
#define IDS_CMD_PACKAGE_INFO
#define IDS_AINFO_LICENSE
#define ID_ACTIVATE_APPWIZ
#define IDS_AINFO_DESCRIPTION
#define IDS_AINFO_URLSITE
#define IDS_CMD_INVALID_OPTION
#define IDS_CMD_NEED_PACKAGE_NAME
#define IDS_AINFO_URLDOWNLOAD
#define IDS_CMD_NEED_FILE_NAME
#define IDS_CMD_NEED_PARAMS
#define IDS_CMD_PACKAGE_NOT_FOUND
SETTINGS_INFO SettingsInfo
BOOL WINAPI AllocConsole(VOID)
BOOL WINAPI AttachConsole(IN DWORD dwProcessId)
POSITION AddTail(INARGTYPE element)
bool IsEmpty() const noexcept
static CInstalledApplicationInfo * CreateInstalledAppByRegistryKey(LPCWSTR KeyName, HKEY hKeyParent, UINT KeyIndex)
CAvailableApplicationInfo * FindAvailableByPackageName(const CStringW &name)
CAppInfo * FindByPackageName(const CStringW &name)
VOID GetApps(CAtlList< CAppInfo * > &List, AppsCategories Type) const
static CInstalledApplicationInfo * CreateInstalledAppInstance(LPCWSTR KeyName, BOOL User, REGSAM WowSam)
virtual BOOL UninstallApplication(UninstallCommandFlags Flags)=0
virtual VOID GetDisplayInfo(CStringW &License, CStringW &Size, CStringW &UrlSite, CStringW &UrlDownload)=0
CStringW szDisplayVersion
#define INVALID_HANDLE_VALUE
#define ERROR_ACCESS_DENIED
HINF WINAPI SetupOpenInfFileW(PCWSTR name, PCWSTR class, DWORD style, UINT *error)
int WINAPI StrCmpIW(LPCWSTR lpszStr, LPCWSTR lpszComp)
BOOL ExtractAndRunGeneratedInstaller(const CAvailableApplicationInfo &AppInfo, LPCWSTR Archive)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VOID MainWindowLoop(CMainWindow *wnd, INT nShowCmd)
const TCHAR szWindowClass[]
#define ERROR_ALREADY_EXISTS
INT __cdecl ConResMsgPrintf(IN PCON_STREAM Stream, IN DWORD dwFlags, IN UINT uID,...)
BOOL DownloadListOfApplications(const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
LPWSTR *WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int *numargs)
base for all directory entries
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateMutexW(IN LPSECURITY_ATTRIBUTES lpMutexAttributes OPTIONAL, IN BOOL bInitialOwner, IN LPCWSTR lpName OPTIONAL)
static BOOL HandleInfoCommand(CAppDB *db, LPWSTR szCommand, int argcLeft, LPWSTR *argvLeft)
static BOOL HandleUninstallCommand(CAppDB &db, UINT argcLeft, LPWSTR *argvLeft)
static BOOL MatchCmdOption(LPWSTR argvOption, LPCWSTR szOptToMacth)
static void InitRappsConsole()
static BOOL HandleFindCommand(CAppDB *db, LPWSTR szCommand, int argcLeft, LPWSTR *argvLeft)
static VOID PrintHelpCommand()
static BOOL HandleInstallCommand(CAppDB *db, LPWSTR szCommand, int argcLeft, LPWSTR *argvLeft)
static CAppInfo * SearchForAppWithDisplayName(CAppDB &db, AppsCategories Type, LPCWSTR Name)
static BOOL HandleGenerateInstallerCommand(CAppDB &db, UINT argcLeft, LPWSTR *argvLeft)
static BOOL HandleSetupCommand(CAppDB *db, LPWSTR szCommand, int argcLeft, LPWSTR *argvLeft)
BOOL ParseCmdAndExecute(LPWSTR lpCmdLine, BOOL bIsFirstLaunch, int nCmdShow)
const WCHAR UsageString[]
#define CMD_KEY_UNINSTALL
BOOL WINAPI SetupGetStringFieldW(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT PWSTR ReturnBuffer, IN ULONG ReturnBufferSize, OUT PULONG RequiredSize)
BOOL WINAPI SetupFindFirstLineW(IN HINF InfHandle, IN PCWSTR Section, IN PCWSTR Key, IN OUT PINFCONTEXT Context)
BOOL WINAPI SetupFindNextLine(IN PINFCONTEXT ContextIn, OUT PINFCONTEXT ContextOut)
VOID WINAPI SetupCloseInfFile(IN HINF InfHandle)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFCMRESLIST List
VOID WINAPI SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
DWORD WINAPI GetLastError(void)
#define ATTACH_PARENT_PROCESS
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)