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.

70 lines
1.6 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/12/91 Split from Logon App, reduced to just Shell Test APP
  9. * 02/21/91 Changed to I_AutoLogon test
  10. */
  11. /****************************************************************************
  12. PROGRAM: test2.cxx
  13. PURPOSE: I_AutoLogon test
  14. FUNCTIONS:
  15. test2()
  16. COMMENTS:
  17. ****************************************************************************/
  18. #ifdef CODESPEC
  19. /*START CODESPEC*/
  20. /********
  21. TEST2.CXX
  22. ********/
  23. /************
  24. end TEST2.CXX
  25. ************/
  26. /*END CODESPEC*/
  27. #endif // CODESPEC
  28. #include "apptest.hxx"
  29. /****************************************************************************
  30. FUNCTION: test2()
  31. PURPOSE: tests I_AutoLogon
  32. COMMENTS:
  33. ****************************************************************************/
  34. void test2(HWND hwndParent)
  35. {
  36. char msgbuf[100];
  37. BOOL fLoggedOn;
  38. MessageBox(hwndParent,SZ("Welcome to sunny test2"),SZ("test I_AutoLogon(TRUE)"),MB_OK);
  39. BOOL fReturn = I_AutoLogon(hwndParent, SZ("AppName"), NULL, &fLoggedOn);
  40. wsprintf(msgbuf,SZ("Returned %s, fLoggedOn = %s"),
  41. (fReturn)?SZ("TRUE"):SZ("FALSE"),
  42. (fLoggedOn)?SZ("TRUE"):SZ("FALSE"));
  43. MessageBox(hwndParent,msgbuf,SZ("Test"),MB_OK);
  44. MessageBox(hwndParent,SZ("Thanks for visiting test2 -- please come again!"),SZ("Test"),MB_OK);
  45. }