return NS_OK;
UseResFile(gResFile);   CPlugin::sIconHandle = GetCIcon(rBrokenPluginIcon); CPlugin::sHandCursor = GetCursor(rHandCursor);   string = Get1Resource('STR ', rAltTextString); if (string && *string) { short stringLen = (*string)[0]; CPlugin::sAltText = (char*)NPN_MemAlloc(stringLen +1); if (CPlugin::sAltText != NULL) { short src = 1; short dest = 0; while (src <= stringLen) CPlugin::sAltText[dest++] = (*string)[src++]; CPlugin::sAltText[dest++] = 0; } } ReleaseResource(string);   string = Get1Resource('STR ', rRefreshTextString); if (string && *string) { short stringLen = (*string)[0]; CPlugin::sRefreshText = (char*)NPN_MemAlloc(stringLen + 1); if (CPlugin::sRefreshText != NULL) { short src = 1; short dest = 0; while (src <= stringLen) CPlugin::sRefreshText[dest++] = (*string)[src++]; CPlugin::sRefreshText[dest++] = 0; } } ReleaseResource(string);   string = Get1Resource('STR ', rJavaScriptInstallCommand); if (string && *string) { short stringLen = (*string)[0]; CPlugin::sInstallCommand = (char*)NPN_MemAlloc(stringLen + 1); if (CPlugin::sInstallCommand != NULL) { short src = 1; short dest = 0; while (src <= stringLen) CPlugin::sInstallCommand[dest++] = (*string)[src++]; CPlugin::sInstallCommand[dest++] = 0; } } ReleaseResource(string);   string = Get1Resource('STR ', rDefaultPluginURL); if (string && *string) { short stringLen = (*string)[0]; CPlugin::sDefaultPage = (char*)NPN_MemAlloc(stringLen + 1); if (CPlugin::sDefaultPage != NULL) { short src = 1; short dest = 0; while (src <= stringLen) CPlugin::sDefaultPage[dest++] = (*string)[src++]; CPlugin::sDefaultPage[dest++] = 0; } } ReleaseResource(string);   string = Get1Resource('STR ', rJavaScriptPageURL); if (string && *string) { short stringLen = (*string)[0]; CPlugin::sJavaScriptPage = (char*)NPN_MemAlloc(stringLen + 1); if (CPlugin::sJavaScriptPage != NULL) { short src = 1; short dest = 0; while (src <= stringLen) CPlugin::sJavaScriptPage[dest++] = (*string)[src++]; CPlugin::sJavaScriptPage[dest++] = 0; } } ReleaseResource(string);  UseResFile(saveResFile);  { ProcessSerialNumber psn; ProcessInfoRec 	info; FSSpec	fsTheApp; OSErr	wErr;  psn.highLongOfPSN = 0; psn.lowLongOfPSN  = kCurrentProcess;  info.processInfoLength = sizeof(ProcessInfoRec); info.processName = nil; info.processAppSpec = &fsTheApp; wErr = ::GetProcessInformation(&psn, &info); if (wErr == noErr) { wErr = FSMakeFSSpec(fsTheApp.vRefNum, fsTheApp.parID, "\p:Plug-ins:Default Plug-in Data", &sDataFileSpec); if (wErr == fnfErr) { FSpCreateResFile(&sDataFileSpec, 'MOSS', 'BINA', smSystemScript); wResFile = FSpOpenResFile(&CPlugin::sDataFileSpec, fsRdWrPerm); if (wResFile != -1) {  string = NewHandleClear(sizeof(SInt16)); AddResource(string, 'STR#', rTypeListStrings, "\p"); UpdateResFile(wResFile); ReleaseResource(string); } FSClose(wResFile); } } } return NPERR_NO_ERROR;
NS_METHOD CPlugin::Initialize(){  dbgOut1("CPlugin::Initialize");  return NS_OK;}