Changeset 1673 for trunk/dll/init.c
- Timestamp:
- Dec 30, 2012, 7:51:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1664 r1673 304 304 CHAR *NullStr = ""; 305 305 PCSZ PCSZ_CM_ALLOCRECORD = "CM_ALLOCRECORD"; 306 PCSZ PCSZ_QUERYCNRINFO = "CM_QUERYCNRINFO"; 306 307 PCSZ PCSZ_DOSCREATEMUTEXSEM = "DosCreateMutexSem"; 307 308 PCSZ PCSZ_DOSCREATEEVENTSEM = "DosCreateEventSem"; … … 543 544 VOID APIENTRY DeInitFM3DLL(ULONG why) 544 545 { 545 / * cleanup */546 // cleanup 546 547 static CHAR s[CCHMAXPATH]; 547 548 CHAR *enddir, szTempFile[CCHMAXPATH]; … … 639 640 BOOL InitFM3DLL(HAB hab, int argc, char **argv) 640 641 { 641 /* 642 /** 642 643 * this function should be called by any application using this DLL right 643 644 * after setting up a message queue … … 714 715 strcpy(profile, PCSZ_FM3DOTINI); 715 716 mypid = getpid(); 716 / * give default appname if none set by caller */717 // give default appname if none set by caller 717 718 if (!*appname) 718 719 strcpy(appname, FM3Str); 719 / * save appname; may be reset below */720 // save appname; may be reset below 720 721 strcpy(realappname, appname); 721 722 if (!strcmp(appname, FM3Str)) … … 844 845 priority_bumped(); 845 846 846 / * _heapmin() is done in a separate thread -- start it */847 // _heapmin() is done in a separate thread -- start it 847 848 if (xbeginthread(HeapThread, 848 849 32768, … … 853 854 } 854 855 855 / * timer messages are sent from a separate thread -- start it */856 // timer messages are sent from a separate thread -- start it 856 857 if (!StartTimer()) { 857 858 Runtime_Error(pszSrcFile, __LINE__, … … 860 861 } 861 862 862 / * Are we the workplace shell? */863 // Are we the workplace shell? 863 864 env = getenv("WORKPLACE_PROCESS"); 864 865 fWorkPlace = env != NULL && … … 957 958 strcpy(appname, FM3Str); 958 959 959 / * start help */960 // start help 960 961 memset(&hini, 0, sizeof(HELPINIT)); 961 962 hini.cb = sizeof(HELPINIT); 962 // hini.ulReturnCode = 0;963 // hini.pszTutorialName = NULL;964 963 hini.phtHelpTable = (PHELPTABLE) MAKELONG(ID_HELPTABLE, 0xffff); 965 964 hini.hmodAccelActionBarModule = (HMODULE) 0; 966 // hini.idAccelTable = 0;967 // hini.idActionBar = 0;968 965 hini.pszHelpWindowTitle = (PSZ)GetPString(IDS_FM2HELPTITLETEXT); 969 966 hini.hmodHelpTableModule = FM3ModHandle; … … 1015 1012 } 1016 1013 1017 / * register window classes we use */1014 // register window classes we use 1018 1015 WinRegisterClass(hab, 1019 1016 (CHAR *) WC_MAINWND, … … 1616 1613 LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE); 1617 1614 1618 / * load pointers and icons we use */1615 // load pointers and icons we use 1619 1616 hptrArrow = WinQuerySysPointer(HWND_DESKTOP, SPTR_ARROW, FALSE); 1620 1617 hptrBusy = WinQuerySysPointer(HWND_DESKTOP, SPTR_WAIT, FALSE); … … 1765 1762 } 1766 1763 } 1767 DosClose(handle); / * Either way, we're done for now */1768 return ret; / * Return TRUE if matched */1764 DosClose(handle); // Either way, we're done for now 1765 return ret; // Return TRUE if matched 1769 1766 } 1770 1767
Note:
See TracChangeset
for help on using the changeset viewer.