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.

45 lines
1004 B

  1. /*++
  2. Copyright (C) 1992-2001 Microsoft Corporation
  3. Module Name:
  4. PLEX.H
  5. Abstract:
  6. History:
  7. --*/
  8. // This is a part of the Microsoft Foundation Classes C++ library.
  9. // Copyright (C) 1992-1993 Microsoft Corporation
  10. // All rights reserved.
  11. //
  12. // This source code is only intended as a supplement to the
  13. // Microsoft Foundation Classes Reference and Microsoft
  14. // QuickHelp and/or WinHelp documentation provided with the library.
  15. // See these sources for detailed information regarding the
  16. // Microsoft Foundation Classes product.
  17. #ifndef __PLEX_H__
  18. #define __PLEX_H__
  19. struct CPlex // warning variable length structure
  20. {
  21. CPlex* pNext;
  22. UINT nMax;
  23. UINT nCur;
  24. /* BYTE data[maxNum*elementSize]; */
  25. void* data() { return this+1; }
  26. static CPlex* Create(CPlex*& head, UINT nMax, UINT cbElement);
  27. // like 'calloc' but no zero fill
  28. // may throw memory exceptions
  29. void FreeDataChain(); // free this one and links
  30. };
  31. #endif //__PLEX_H__