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.

35 lines
778 B

  1. // Copyright (c) 1996-1999 Microsoft Corporation
  2. // Misc.h
  3. //
  4. // functions used in multiple DLL's
  5. #ifndef __MISC_H__
  6. #define __MISC_H__
  7. //LPVOID MemGlobalAllocPtr(UINT uFlags,DWORD dwBytes);
  8. //BOOL MemGlobalFreePtr(LPVOID p);
  9. // memory functions
  10. //HRESULT MemStart();
  11. //void MemEnd();
  12. /*#ifdef _DEBUGMEM
  13. #ifndef new
  14. void* operator new( size_t cb, LPCTSTR pszFileName, WORD wLine );
  15. #define new new( __FILE__, (WORD)__LINE__ )
  16. #endif
  17. #endif*/
  18. #ifdef DBG
  19. #define RELEASE( obj ) ( (obj)->Release(), *((char**)&(obj)) = (char*)0x0bad0bad )
  20. #else
  21. #define RELEASE( obj ) (obj)->Release()
  22. #endif
  23. BOOL GetRegValueDword(
  24. LPCTSTR szRegPath,
  25. LPCTSTR szValueName,
  26. LPDWORD pdwValue);
  27. ULONG GetTheCurrentTime();
  28. #endif // __MISC_H__