24APPWIZ [/? /l] [/all /app /upd]\n\
27 /all\t Show programs and updates\n\
28 /app\t Show programs only\n\
29 /upd\t Show updates only\n"));
39 shInputDll.
cbSize =
sizeof(shInputDll);
42 shInputDll.
lpFile =
_T(
"RunDll32.exe");
43 shInputDll.
lpParameters =
_T(
"shell32.dll,Control_RunDLL appwiz.cpl");
106 _T(
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"),
109 printf(
_T(
"ERROR: Can not open Uninstall key. Press any key for continue...\n"));
129 bIsSystemComponent = (dwValue == 0x1);
133 bIsSystemComponent =
FALSE;
149 if (!bIsSystemComponent)
155 wsprintf(szOutBuf,
_T(
" %d \t %s\n"), iCount, szDisplayName);
195 printf(
"\n\nPlease enter application/update number and press ENTER for uninstall\nor press any key for Exit...\n");
222 if (
argc < 3)
goto ShowAll;
229 iNumber =
atoi(Char);
231 if (iNumber == 0)
return 0;
240 iNumber =
atoi(Char);
242 if (iNumber == 0)
return 0;
251 iNumber =
atoi(Char);
253 if (iNumber == 0)
return 0;
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI SetConsoleTextAttribute(IN HANDLE hConsoleOutput, IN WORD wAttributes)
#define FOREGROUND_INTENSITY
#define RegCloseKey(hKey)
_Check_return_ _CRTIMP int __cdecl scanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
void CallUninstall(LPTSTR szUninstallString)
int ShowAppList(DWORD dwMode, INT iItem)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const WCHAR szName[]
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define STD_OUTPUT_HANDLE
#define HKEY_LOCAL_MACHINE
BOOL WINAPI TranslateMessage(_In_ const MSG *)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)