Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.8 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1987-1990 **/
  4. /********************************************************************/
  5. /*
  6. * FILE STATUS:
  7. * 12/06/90 Created
  8. * 01/02/91 renamed to just test1
  9. * 1/12/91 Split from Logon App, reduced to just Shell Test APP
  10. */
  11. /****************************************************************************
  12. PROGRAM: test11.cxx
  13. PURPOSE: Test module to test I_ChangePassword
  14. FUNCTIONS:
  15. test11()
  16. COMMENTS:
  17. ****************************************************************************/
  18. #ifdef CODESPEC
  19. /*START CODESPEC*/
  20. /********
  21. TESTb.CXX
  22. ********/
  23. /************
  24. end TESTb.CXX
  25. ************/
  26. /*END CODESPEC*/
  27. #endif // CODESPEC
  28. #include "apptest.hxx"
  29. /****************************************************************************
  30. FUNCTION: test11()
  31. PURPOSE: test WNetRestoreConnection
  32. COMMENTS:
  33. ****************************************************************************/
  34. void test11(HWND hwndParent)
  35. {
  36. BOOL fOK;
  37. TCHAR pszName[100];
  38. TCHAR pszMessage[200];
  39. MessageBox(hwndParent,SZ("Welcome to sunny test11"),SZ("Test"),MB_OK);
  40. if ( I_SystemFocusDialog(hwndParent, FOCUSDLG_SERVERS_ONLY,
  41. pszName,
  42. sizeof(pszName),
  43. &fOK) )
  44. {
  45. MessageBox( hwndParent, SZ("An error was returned from the dialog"),
  46. SZ("Test"), MB_OK) ;
  47. return ;
  48. }
  49. if (!fOK)
  50. {
  51. MessageBox(hwndParent,SZ("User Hit cancel!"),SZ("Test"),MB_OK);
  52. }
  53. else
  54. {
  55. wsprintf(pszMessage,"The name is: %s", pszName );
  56. MessageBox(hwndParent,pszMessage,SZ("Test"),MB_OK);
  57. }
  58. MessageBox(hwndParent,SZ("Thanks for visiting test11 -- please come again!"),SZ("Test"),MB_OK);
  59. }