Leaked source code of windows server 2003
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.

40 lines
813 B

  1. /***
  2. *drivemap.c - _getdrives
  3. *
  4. * Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * defines _getdrives()
  8. *
  9. *Revision History:
  10. * 08-22-91 BWM Wrote module.
  11. * 04-06-93 SKS Replace _CRTAPI* with _cdecl
  12. *
  13. *******************************************************************************/
  14. #include <cruntime.h>
  15. #include <oscalls.h>
  16. #include <direct.h>
  17. #if !defined(_WIN32)
  18. #error ERROR - ONLY WIN32 TARGET SUPPORTED!
  19. #endif
  20. /***
  21. *void _getdrivemap(void) - Get bit map of all available drives
  22. *
  23. *Purpose:
  24. *
  25. *Entry:
  26. *
  27. *Exit:
  28. * drive map with drive A in bit 0, B in 1, etc.
  29. *
  30. *Exceptions:
  31. *
  32. *******************************************************************************/
  33. unsigned long __cdecl _getdrives()
  34. {
  35. return (GetLogicalDrives());
  36. }