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.

54 lines
1.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. //Module: Dynamic/Memory.h
  3. //
  4. // Purpose: Smartdefaults/Relevant Declarations.
  5. //
  6. // Developers Name: Bharat/Radhika
  7. //
  8. // History:
  9. //
  10. // Date Author Comments
  11. // 10-8-2001 Bharat Initial Version.
  12. // <creation> <author>
  13. //
  14. // <modification> <author> <comments, references to code sections,
  15. // in case of bug fixes>
  16. //
  17. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  18. #ifndef _MEMORY_H_
  19. #define _MEMORY_H_
  20. //
  21. //This function will allocates heap memory.
  22. //
  23. LPVOID
  24. AllocADsMem(
  25. IN DWORD cb
  26. );
  27. //
  28. //This function will deallocates memory.
  29. //
  30. BOOL
  31. FreeADsMem(
  32. IN LPVOID pMem
  33. );
  34. //
  35. //This function will allocate enough local memory to store the specified
  36. // string, and copy that string to the allocated memory
  37. //
  38. LPWSTR
  39. AllocADsStr(
  40. IN OUT LPWSTR pStr
  41. );
  42. //
  43. //This function deallocates LPWSTR
  44. //
  45. BOOL
  46. FreeADsStr(
  47. IN LPWSTR pStr
  48. );
  49. #endif // _MEMORY_H_INCLUDED_
  50.