Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
uninstall.c File Reference
#include "uninstall.h"
#include "extra.h"
#include "dialogs.h"
#include "ifuncns.h"

Go to the source code of this file.

Functions

 main (int argc, char *argv[], char *envp[])

Variables

HWND hDlgUninstall
HWND hDlgMessage
HWND hWndMain
PSZ szEGlobalAlloc
PSZ szEStringLoad
PSZ szEDllLoad
PSZ szEStringNull
PSZ szTempSetupPath
PSZ szClassName
PSZ szUninstallDir
PSZ szTempDir
PSZ szOSTempDir
PSZ szFileIniUninstall
PSZ szFileIniDefaultsInfo
PSZ gszSharedFilename
ULONG ulOSType
ULONG ulScreenX
ULONG ulScreenY
ULONG ulDlgFrameX
ULONG ulDlgFrameY
ULONG ulTitleBarY
ULONG gulWhatToDo
uninstallGen ugUninstall
diU diUninstall

Function Documentation

main ( int  argc,
char *  argv[],
char *  envp[] 
)

Definition at line 76 of file uninstall.c.

{
  HAB hab;
  HMQ hmq;
  QMSG qmsg;
  char  szBuf[MAX_BUF];
  ATOM atom;

  hab = WinInitialize( 0 );
  hmq = WinCreateMsgQueue( hab, 0 );

  atom = WinAddAtom(WinQuerySystemAtomTable(), CLASS_NAME);

  if(Initialize(0, argv[0]))
  {
    WinPostQueueMsg(0, WM_QUIT, 1, 0);
  }
  else if(!InitApplication(0))
  {
    char szEFailed[MAX_BUF];

    if(NS_LoadString(0, IDS_ERROR_FAILED, szEFailed, MAX_BUF) == WIZ_OK)
    {
      sprintf(szBuf, szEFailed, "InitApplication().");
      PrintError(szBuf, ERROR_CODE_SHOW);
    }
    WinPostQueueMsg(0, WM_QUIT, 1, 0);
  }
  else if(ParseUninstallIni(argc, argv))
  {
    WinPostQueueMsg(0, WM_QUIT, 1, 0);
  }
  else if(ugUninstall.bUninstallFiles == TRUE)
  {
    if(diUninstall.bShowDialog == TRUE)
      hDlgUninstall = InstantiateDialog(hWndMain, DLG_UNINSTALL, diUninstall.szTitle, DlgProcUninstall);
    else
      ParseAllUninstallLogs();
  }

  if((ugUninstall.bUninstallFiles == TRUE) && (diUninstall.bShowDialog == TRUE))
  {
    while ( WinGetMsg( hab, &qmsg, NULLHANDLE, 0, 0 ) )
      WinDispatchMsg( hab, &qmsg );
  }

  /* Do clean up before exiting from the application */
  DeInitialize();

  WinDeleteAtom(WinQuerySystemAtomTable(), atom);

  WinDestroyMsgQueue( hmq );
  WinTerminate( hab ); 

}

Here is the call graph for this function:


Variable Documentation

Definition at line 74 of file uninstall.c.

Definition at line 62 of file uninstall.c.

Definition at line 71 of file uninstall.c.

Definition at line 47 of file uninstall.c.

Definition at line 46 of file uninstall.c.

Definition at line 48 of file uninstall.c.

Definition at line 56 of file uninstall.c.

Definition at line 52 of file uninstall.c.

Definition at line 50 of file uninstall.c.

Definition at line 51 of file uninstall.c.

Definition at line 53 of file uninstall.c.

Definition at line 61 of file uninstall.c.

Definition at line 60 of file uninstall.c.

Definition at line 59 of file uninstall.c.

PSZ szTempDir

Definition at line 58 of file uninstall.c.

Definition at line 54 of file uninstall.c.

Definition at line 57 of file uninstall.c.

Definition at line 73 of file uninstall.c.

Definition at line 67 of file uninstall.c.

Definition at line 68 of file uninstall.c.

Definition at line 64 of file uninstall.c.

Definition at line 65 of file uninstall.c.

Definition at line 66 of file uninstall.c.

Definition at line 69 of file uninstall.c.