src/Cedar/SW.c
// Screen that is displayed when the user don't have administrative privileges

Screen that is displayed when the user don't have administrative privileges
Screen that is displayed when the user don ' t have administrative privileges
UINT SwNotAdminDlg(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, WIZARD* wizard, WIZARD_PAGE* wizard_page, void* param)
{
	SW* sw = (SW*)param;
	if (hWnd == NULL || sw == NULL)
	{
		return 0;
	}
	switch (msg)
	{
	case WM_INITDIALOG:
		break;
	case WM_WIZ_SHOW:
		FormatText(hWnd, S_INFO, MsGetUserNameW());
		DlgFont(hWnd, S_INFO2, 0, true);
		SetShow(hWnd, S_INFO2, (sw->UninstallMode ? false : true));
		SetWizardButton(wizard_page, true, ((sw->UninstallMode && sw->IsReExecForUac) ? false : true), true, true);
		break;
	case WM_WIZ_HIDE:
		break;
	case WM_CLOSE:
		break;
	case WM_WIZ_NEXT:
		break;
	case WM_WIZ_BACK:
		if (sw->UninstallMode == false)
		{
			return D_SW_MODE;
		}
		else
		{
			return D_SW_UNINST1;
		}
		break;
	case WM_COMMAND:
		switch (wParam)
		{
		}
		break;
	}
	return 0;
}
UINT SwNotAdminDlg ( HWND hWnd , UINT msg , WPARAM wParam , LPARAM lParam , WIZARD * wizard , WIZARD_PAGE * wizard_page , void * param ) { SW * sw = ( SW * ) param ; if ( hWnd == NULL || sw == NULL ) { return 0 ; } switch ( msg ) { case WM_INITDIALOG : break ; case WM_WIZ_SHOW : FormatText ( hWnd , S_INFO , MsGetUserNameW ( ) ) ; DlgFont ( hWnd , S_INFO2 , 0 , true ) ; SetShow ( hWnd , S_INFO2 , ( sw -> UninstallMode ? false : true ) ) ; SetWizardButton ( wizard_page , true , ( ( sw -> UninstallMode && sw -> IsReExecForUac ) ? false : true ) , true , true ) ; break ; case WM_WIZ_HIDE : break ; case WM_CLOSE : break ; case WM_WIZ_NEXT : break ; case WM_WIZ_BACK : if ( sw -> UninstallMode == false ) { return D_SW_MODE ; } else { return D_SW_UNINST1 ; } break ; case WM_COMMAND : switch ( wParam ) { } break ; } return 0 ; }
Screen that is displayed when the user don't have administrative privileges
Screen that is displayed when the user don ' t have administrative privileges
// Validate arguments
