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.

32 lines
919 B

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