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.

47 lines
994 B

  1. /*************************************************************************
  2. *
  3. * NWAPI1.C
  4. *
  5. * NetWare routines, ported from DOS
  6. *
  7. * Copyright (c) 1995 Microsoft Corporation
  8. *
  9. * $Log: N:\NT\PRIVATE\NW4\NWSCRIPT\VCS\NWAPI1.C $
  10. *
  11. * Rev 1.1 22 Dec 1995 14:25:48 terryt
  12. * Add Microsoft headers
  13. *
  14. * Rev 1.0 15 Nov 1995 18:07:32 terryt
  15. * Initial revision.
  16. *
  17. * Rev 1.0 15 May 1995 19:10:48 terryt
  18. * Initial revision.
  19. *
  20. *************************************************************************/
  21. #include "common.h"
  22. /*
  23. Get default connection handle.
  24. return TRUE if succeeded, FALSE otherwise.
  25. */
  26. int CGetDefaultConnectionID ( unsigned int * pConn )
  27. {
  28. unsigned int iRet = GetDefaultConnectionID(pConn);
  29. switch (iRet)
  30. {
  31. case 0:
  32. break;
  33. case 0x880f:
  34. DisplayMessage(IDR_NO_KNOWN_FILE_SERVER);
  35. break;
  36. default:
  37. DisplayMessage(IDR_NO_DEFAULT_CONNECTION);
  38. break;
  39. }
  40. return(iRet == 0);
  41. }