nsComponentManager::RegisterComponentLib(kImageManagerCID, "Image Manager", "component:
WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdParam, int nCmdShow){  gInstance = instance;  nsComponentManager::RegisterComponent(kCWindowIID, NULL, NULL, WIDGET_DLL, PR_FALSE, PR_FALSE);  nsComponentManager::RegisterComponent(kCChildWindowIID, NULL, NULL, WIDGET_DLL, PR_FALSE, PR_FALSE);  nsComponentManager::RegisterComponent(kCScrollbarIID, NULL, NULL, WIDGET_DLL, PR_FALSE, PR_FALSE);  static NS_DEFINE_IID(kCRenderingContextIID, NS_RENDERING_CONTEXT_CID);  static NS_DEFINE_IID(kCDeviceContextIID, NS_DEVICE_CONTEXT_CID);  static NS_DEFINE_IID(kCFontMetricsIID, NS_FONT_METRICS_CID);  static NS_DEFINE_IID(kCImageIID, NS_IMAGE_CID);  nsComponentManager::RegisterComponent(kCRenderingContextIID, NULL, NULL, GFXWIN_DLL, PR_FALSE, PR_FALSE);  nsComponentManager::RegisterComponent(kCDeviceContextIID, NULL, NULL, GFXWIN_DLL, PR_FALSE, PR_FALSE);  nsComponentManager::RegisterComponent(kCFontMetricsIID, NULL, NULL, GFXWIN_DLL, PR_FALSE, PR_FALSE);  nsComponentManager::RegisterComponent(kCImageIID, NULL, NULL, GFXWIN_DLL, PR_FALSE, PR_FALSE);  if (!prevInstance) {    WNDCLASS wndClass;    wndClass.style = 0;    wndClass.lpfnWndProc = WndProc;    wndClass.cbClsExtra = 0;    wndClass.cbWndExtra = 0;    wndClass.hInstance = gInstance;    wndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);    wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);    wndClass.hbrBackground = (HBRUSH) GetStockObject(LTGRAY_BRUSH);    wndClass.lpszMenuName = class1Name;    wndClass.lpszClassName = class1Name;    RegisterClass(&wndClass);  }  // Create our first top level window  HWND gHwnd = CreateTopLevel(class1Name, "Raptor HTML Viewer", 620, 400);  // Process messages  MSG msg;  while (GetMessage(&msg, NULL, 0, 0)) {      TranslateMessage(&msg);      DispatchMessage(&msg);  }  return msg.wParam;}