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.

67 lines
1.5 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 test9
  9. * 1/15/91 Split from Logon App, reduced to just Shell Test APP
  10. */
  11. /****************************************************************************
  12. PROGRAM: test9.cxx
  13. PURPOSE: Test module to test WNetDisconnectDialog
  14. FUNCTIONS:
  15. test9()
  16. COMMENTS:
  17. ****************************************************************************/
  18. #ifdef CODESPEC
  19. /*START CODESPEC*/
  20. /********
  21. test9.CXX
  22. ********/
  23. /************
  24. end test9.CXX
  25. ************/
  26. /*END CODESPEC*/
  27. #endif // CODESPEC
  28. #include "apptest.hxx"
  29. /****************************************************************************
  30. FUNCTION: test9()
  31. PURPOSE: test WNetConnectionDialog
  32. COMMENTS:
  33. ****************************************************************************/
  34. void test9(HWND hwndParent)
  35. {
  36. MessageBox(hwndParent,SZ("Welcome to sunny test9"),SZ("Test"),MB_OK);
  37. #ifdef WIN32
  38. DWORD rc = WNetDisconnectDialog( hwndParent, RESOURCETYPE_DISK ) ;
  39. #else
  40. WORD rc;
  41. rc = WNetDisconnectDialog ( hwndParent, WNTYPE_DRIVE );
  42. #endif
  43. MessageBox(hwndParent,SZ("Thanks for visiting test9 -- please come again!"),SZ("Test"),MB_OK);
  44. }