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.

66 lines
2.1 KiB

  1. /*******************************************************************************
  2. *
  3. * OEMTDAPI.H
  4. *
  5. * WinFrame OEM Transport Driver API support -
  6. * function prototypes that must be supported by a WinFrame OEM
  7. * Transport Driver
  8. *
  9. * Copyright Microsoft Corporation, 1998
  10. *
  11. *
  12. *******************************************************************************/
  13. /*******************************************************************************
  14. *
  15. * OemTdEnumerateDevicesW
  16. *
  17. * Enumerate all devices supported by this OEM Transport Driver
  18. *
  19. * ENTRY:
  20. * ppBuffer (output)
  21. * points to a variable to reference the API-allocated buffer which
  22. * will contain a MULTI-SZ formatted list of devices supported by
  23. * this OEM Transport Driver. Set to NULL on error.
  24. *
  25. * EXIT:
  26. * ERROR_SUCCESS - enumeration was sucessful
  27. * error code - enumeration failed
  28. *
  29. * NOTE: The buffer allocated by this API will contain all devices that are
  30. * supported by this OEM Transport Driver, in MULTI-SZ format (each
  31. * device name is nul terminated with an extra nul character following
  32. * the last name). The caller must call OemTdConfigFreeBufferW() to
  33. * free the memory allocated for this buffer when it is done using it.
  34. *
  35. ******************************************************************************/
  36. LONG
  37. WINAPI
  38. OemTdEnumerateDevicesW( LPWSTR *ppBuffer );
  39. typedef LONG (WINAPI * PFNOEMTDENUMERATEDEVICESW)( LPWSTR * );
  40. #define OEMTDENUMERATEDEVICESW "OemTdEnumerateDevicesW"
  41. /*******************************************************************************
  42. *
  43. * OemTdFreeBufferW
  44. *
  45. * Frees memory allocated from above OemTd APIs.
  46. *
  47. * ENTRY:
  48. * pBuffer
  49. * pointer to memory to be freed
  50. *
  51. * EXIT: none
  52. *
  53. ******************************************************************************/
  54. VOID
  55. WINAPI
  56. OemTdFreeBufferW( LPWSTR pBuffer );
  57. typedef VOID (WINAPI * PFNOEMTDFREEBUFFERW)( LPWSTR );
  58. #define OEMTDFREEBUFFERW "OemTdFreeBufferW"