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.

65 lines
1.9 KiB

  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2001-2002 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: threadpooldllmain.h
  6. *
  7. * Content: DirectPlay Thread Pool DllMain functions header file.
  8. *
  9. * History:
  10. * Date By Reason
  11. * ======== ======== =========
  12. * 11/02/01 VanceO Created.
  13. *
  14. ******************************************************************************/
  15. #ifndef __THREADPOOLDLLMAIN_H__
  16. #define __THREADPOOLDLLMAIN_H__
  17. //=============================================================================
  18. // Forward declarations
  19. //=============================================================================
  20. typedef struct _DPTHREADPOOLOBJECT DPTHREADPOOLOBJECT, * PDPTHREADPOOLOBJECT;
  21. //=============================================================================
  22. // External globals
  23. //=============================================================================
  24. #ifndef DPNBUILD_LIBINTERFACE
  25. extern LONG g_lDPTPInterfaceCount;
  26. #endif // ! DPNBUILD_LIBINTERFACE
  27. #ifndef DPNBUILD_MULTIPLETHREADPOOLS
  28. #ifndef DPNBUILD_ONLYONETHREAD
  29. extern DNCRITICAL_SECTION g_csGlobalThreadPoolLock;
  30. #endif // !DPNBUILD_ONLYONETHREAD
  31. extern DWORD g_dwDPTPRefCount;
  32. extern DPTHREADPOOLOBJECT * g_pDPTPObject;
  33. #endif // ! DPNBUILD_MULTIPLETHREADPOOLS
  34. //=============================================================================
  35. // Functions
  36. //=============================================================================
  37. BOOL DPThreadPoolInit(HANDLE hModule);
  38. void DPThreadPoolDeInit(void);
  39. #ifndef DPNBUILD_NOCOMREGISTER
  40. BOOL DPThreadPoolRegister(LPCWSTR wszDLLName);
  41. BOOL DPThreadPoolUnRegister(void);
  42. #endif // ! DPNBUILD_NOCOMREGISTER
  43. #ifndef DPNBUILD_LIBINTERFACE
  44. DWORD DPThreadPoolGetRemainingObjectCount(void);
  45. #endif // ! DPNBUILD_LIBINTERFACE
  46. #endif // __THREADPOOLDLLMAIN_H__