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.

68 lines
2.0 KiB

  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2001 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: threadpoolparamval.h
  6. *
  7. * Content: DirectPlay Thread Pool parameter validation header file.
  8. *
  9. * History:
  10. * Date By Reason
  11. * ======== ======== =========
  12. * 11/02/01 VanceO Created.
  13. *
  14. ******************************************************************************/
  15. #ifndef __THREADPOOLPARAMVAL_H__
  16. #define __THREADPOOLPARAMVAL_H__
  17. #ifndef DPNBUILD_NOPARAMVAL
  18. //=============================================================================
  19. // Functions
  20. //=============================================================================
  21. #if ((! defined(DPNBUILD_ONLYONETHREAD)) || (! defined(DPNBUILD_LIBINTERFACE)))
  22. //
  23. // IDirectPlay8ThreadPool interface
  24. //
  25. HRESULT DPTPValidateInitialize(IDirectPlay8ThreadPool * pInterface,
  26. PVOID const pvUserContext,
  27. const PFNDPNMESSAGEHANDLER pfn,
  28. const DWORD dwFlags);
  29. HRESULT DPTPValidateClose(IDirectPlay8ThreadPool * pInterface,
  30. const DWORD dwFlags);
  31. HRESULT DPTPValidateGetThreadCount(IDirectPlay8ThreadPool * pInterface,
  32. const DWORD dwProcessorNum,
  33. DWORD * const pdwNumThreads,
  34. const DWORD dwFlags);
  35. HRESULT DPTPValidateSetThreadCount(IDirectPlay8ThreadPool * pInterface,
  36. const DWORD dwProcessorNum,
  37. const DWORD dwNumThreads,
  38. const DWORD dwFlags);
  39. #endif // ! DPNBUILD_ONLYONETHREAD or ! DPNBUILD_LIBINTERFACE
  40. #ifdef DPNBUILD_LIBINTERFACE
  41. HRESULT DPTPValidateDoWork(const DWORD dwAllowedTimeSlice,
  42. const DWORD dwFlags);
  43. #else // ! DPNBUILD_LIBINTERFACE
  44. HRESULT DPTPValidateDoWork(IDirectPlay8ThreadPool * pInterface,
  45. const DWORD dwAllowedTimeSlice,
  46. const DWORD dwFlags);
  47. #endif // ! DPNBUILD_LIBINTERFACE
  48. #endif // ! DPNBUILD_NOPARAMVAL
  49. #endif // __THREADPOOLPARAMVAL_H__