Changeset 15 for trunk/src/helpers/winh.c
- Timestamp:
- Dec 11, 2000, 8:54:20 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r14 r15 2480 2480 * object. 2481 2481 * 2482 * Even though this isn't clearly said in PMREF, 2483 * PROGDETAILS.swpInitial is important: 2484 * 2485 * -- To start a session minimized, set SWP_MINIMIZE. 2486 * 2487 * -- To start a VIO session without auto-close, set 2488 * the half-documented SWP_NOAUTOCLOSE flag (0x8000) 2489 * This flag is now in the newer toolkit headers. 2490 * 2482 2491 * Since this calls WinStartApp in turn, this 2483 2492 * requires a message queue on the calling thread. 2484 2493 * 2485 2494 *@@added V0.9.6 (2000-10-16) [umoeller] 2495 *@@changed V0.9.7 (2000-12-10) [umoeller]: PROGDETAILS.swpInitial no longer zeroed... this broke VIOs 2486 2496 */ 2487 2497 … … 2500 2510 ProgDetails.Length = sizeof(PROGDETAILS); 2501 2511 ProgDetails.progt.fbVisible = SHE_VISIBLE; 2502 ProgDetails.pszEnvironment = 0; // "WORKPLACE\0\0"; 2503 memset(&ProgDetails.swpInitial, 0, sizeof(SWP)); 2512 ProgDetails.pszEnvironment = 0; 2513 2514 // memset(&ProgDetails.swpInitial, 0, sizeof(SWP)); 2515 // this wasn't a good idea... WPProgram stores stuff 2516 // in here, such as the "minimize on startup" -> SWP_MINIMIZE 2504 2517 2505 2518 // duplicate parameters... … … 2513 2526 2514 2527 // program type fixups 2515 switch (ProgDetails.progt.progc) 2528 switch (ProgDetails.progt.progc) // that's a ULONG 2516 2529 { 2517 2530 case ((ULONG)-1): // we get that sometimes... … … 2524 2537 switch (ProgDetails.progt.progc) 2525 2538 { 2526 case PROG_31_ENH :2527 case PROG_31_ENHSEAMLESSCOMMON: 2528 case PROG_31_ENH SEAMLESSVDM:2539 case PROG_31_ENHSEAMLESSVDM: // 17 2540 case PROG_31_ENHSEAMLESSCOMMON: // 18 2541 case PROG_31_ENH: // 19 2529 2542 fIsWindowsApp = TRUE; 2530 2543 fIsWindowsEnhApp = TRUE; 2531 2544 break; 2532 2545 2533 case PROG_WINDOW_AUTO: 2534 #ifdef PROG_30_STD 2535 case PROG_30_STD: 2546 #ifndef PROG_30_STD 2547 #define PROG_30_STD (PROGCATEGORY)11 2536 2548 #endif 2537 case PROG_31_STD: 2538 case PROG_WINDOW_REAL: 2539 #ifdef PROG_30_STDSEAMLESSVDM 2540 case PROG_30_STDSEAMLESSVDM: 2549 2550 #ifndef PROG_30_STDSEAMLESSVDM 2551 #define PROG_30_STDSEAMLESSVDM (PROGCATEGORY)13 2541 2552 #endif 2542 case PROG_31_STDSEAMLESSVDM: 2543 case PROG_30_STDSEAMLESSCOMMON: 2544 case PROG_31_STDSEAMLESSCOMMON: 2553 2554 case PROG_WINDOW_REAL: // 10 2555 case PROG_30_STD: // 11 2556 case PROG_WINDOW_AUTO: // 12 2557 case PROG_30_STDSEAMLESSVDM: // 13 2558 case PROG_30_STDSEAMLESSCOMMON: // 14 2559 case PROG_31_STDSEAMLESSVDM: // 15 2560 case PROG_31_STDSEAMLESSCOMMON: // 16 2561 case PROG_31_STD: // 20 2545 2562 fIsWindowsApp = TRUE; 2546 2563 break; … … 2705 2722 // do not use SAF_STARTCHILDAPP, or the 2706 2723 // app will be terminated automatically 2724 // when the WPS terminates! 2707 2725 2708 2726 // _Pmpf((__FUNCTION__ ": got happ 0x%lX", happ));
Note:
See TracChangeset
for help on using the changeset viewer.