Changeset 1632
- Timestamp:
- 2000-10-30T15:21:33+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/checkis/checkis.cpp
r906 r1632 6 6 #pragma hdrstop 7 7 8 int __stdcall WinMain(H ANDLE Instance, HANDLE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {8 int __stdcall WinMain(HINSTANCE Instance, HINSTANCE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) { 9 9 HKEY hk1, hk2, hk3, hk4, hk5, lk; 10 10 char command[2048]; … … 14 14 if (RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE", &hk1) == ERROR_SUCCESS) { 15 15 if (RegOpenKey(hk1, "Waikato University", &hk2) == ERROR_SUCCESS) { 16 if (RegOpenKey(hk2, " FAO", &hk3) == ERROR_SUCCESS) {16 if (RegOpenKey(hk2, "sjnew", &hk3) == ERROR_SUCCESS) { 17 17 if (RegOpenKey(hk3, "1", &hk4) == ERROR_SUCCESS) { 18 if (RegOpenKey(hk4, " 1.00.000", &hk5) == ERROR_SUCCESS) {18 if (RegOpenKey(hk4, "2.26.000", &hk5) == ERROR_SUCCESS) { 19 19 20 if (RegOpenKey(hk3, " 1.00.000", &lk) == ERROR_SUCCESS) {20 if (RegOpenKey(hk3, "2.26.000", &lk) == ERROR_SUCCESS) { 21 21 22 22 // look for the command to start the browser … … 29 29 while (RegEnumValue(lk, dwIndex, key, &keysize, NULL, &type, 30 30 (unsigned char *)command, &comsize) == ERROR_SUCCESS) { 31 // see if this is the right key 31 // see if this is the right key (yes, this should always be library, NOT 32 // the name of the executable 32 33 if (strcmp (key, "library") == 0) break; 33 34 else command[0] = '\0'; … … 57 58 // installed ask the user whether they want to run the library now 58 59 if (MessageBox (NULL, 59 "Would you like to run the FAO Library?",60 "Would you like to view the School Journal Collection?", 60 61 "Greenstone Digital Library", 61 62 MB_YESNO) == IDYES) {
Note:
See TracChangeset
for help on using the changeset viewer.