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.

93 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1990-1998 Microsoft Corporation, All Rights Reserved.
  3. Module Name:
  4. utils.h
  5. Abstract:
  6. Header file for the helped routines.
  7. Author:
  8. Anil Francis Thomas (10/98)
  9. Environment:
  10. User mode
  11. Revision History:
  12. --*/
  13. #ifndef __ATMSM_UTILS__H_
  14. #define __ATMSM_UTILS__H_
  15. #define DriverStateNotInstalled 1
  16. #define DriverStateInstalled 2
  17. #define DriverStateRunning 3
  18. #define ATMSM_DRIVER_NAME "AtmSmDrv.Sys"
  19. DWORD
  20. AtmSmDriverCheckState(
  21. PDWORD pdwState
  22. );
  23. DWORD
  24. AtmSmDriverStart(
  25. );
  26. DWORD
  27. AtmSmDriverStop(
  28. );
  29. DWORD
  30. AtmSmOpenDriver(
  31. OUT HANDLE *phDriver
  32. );
  33. VOID
  34. AtmSmCloseDriver(
  35. IN HANDLE hDriver
  36. );
  37. DWORD
  38. AtmSmEnumerateAdapters(
  39. IN HANDLE hDriver,
  40. IN OUT PADAPTER_INFO pAdaptInfo,
  41. IN OUT PDWORD pdwSize
  42. );
  43. DWORD
  44. CloseConnectHandle(
  45. OVERLAPPED *pOverlapped
  46. );
  47. DWORD
  48. CloseReceiveHandle(
  49. OVERLAPPED *pOverlapped
  50. );
  51. BOOL
  52. VerifyPattern(
  53. PUCHAR pBuf,
  54. DWORD dwSize
  55. );
  56. VOID
  57. FillPattern(
  58. PUCHAR pBuf,
  59. DWORD dwSize
  60. );
  61. char *
  62. GetErrorString(
  63. DWORD dwError
  64. );
  65. #endif // __ATMSM_UTILS__H_