Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsWinMain.cpp File Reference
#include <windows.h>
#include "nsViewerApp.h"
#include "nsBrowserWindow.h"
#include "nsITimer.h"
#include "JSConsole.h"
#include "plevent.h"
#include "nsIServiceManager.h"
#include "nsWidgetsCID.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 The Xalan testcases app.
int PASCAL WinMain (HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdParam, int nCmdShow)

Variables

JSConsolegConsole
HINSTANCE gInstance
HINSTANCE gPrevInstance

Function Documentation

int main ( int  argc,
char **  argv 
)

The Xalan testcases app.

Definition at line 147 of file nsWinMain.cpp.

{
  nsresult rv;
  rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
  NS_ASSERTION(NS_SUCCEEDED(rv), "NS_InitXPCOM failed");
  nsViewerApp* app = new nsNativeViewerApp();
  NS_ADDREF(app);
  app->Initialize(argc, argv);
  int result = app->Run();
  app->Exit();  // this exit is needed for the -x case where the close box is never clicked
  NS_RELEASE(app);
  rv = NS_ShutdownXPCOM(nsnull);
  NS_ASSERTION(NS_SUCCEEDED(rv), "NS_ShutdownXPCOM failed");
  return result;
}

Here is the call graph for this function:

int PASCAL WinMain ( HINSTANCE  instance,
HINSTANCE  prevInstance,
LPSTR  cmdParam,
int  nCmdShow 
)

Definition at line 165 of file nsWinMain.cpp.

{
  gInstance = instance;
  gPrevInstance = prevInstance;
  return main(0, nsnull);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 47 of file nsWinMain.cpp.

Definition at line 48 of file nsWinMain.cpp.

Definition at line 48 of file nsWinMain.cpp.