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.

47 lines
1.3 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // NT native/Win32 mapping layer.
  4. //
  5. // Copyright (C) Microsoft Corporation, 2000.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef __NTNATIVE_H__
  9. #define __NTNATIVE_H__
  10. #define InitializeCriticalSection(Crit) RtlInitializeCriticalSection(Crit)
  11. #define DeleteCriticalSection(Crit) RtlDeleteCriticalSection(Crit)
  12. #define EnterCriticalSection(Crit) RtlEnterCriticalSection(Crit)
  13. #define LeaveCriticalSection(Crit) RtlLeaveCriticalSection(Crit)
  14. #define malloc(Bytes) RtlAllocateHeap(RtlProcessHeap(), 0, Bytes)
  15. #define free(Ptr) RtlFreeHeap(RtlProcessHeap(), 0, Ptr)
  16. HANDLE
  17. WINAPI
  18. NtNativeCreateFileA(
  19. LPCSTR lpFileName,
  20. DWORD dwDesiredAccess,
  21. DWORD dwShareMode,
  22. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  23. DWORD dwCreationDisposition,
  24. DWORD dwFlagsAndAttributes,
  25. HANDLE hTemplateFile,
  26. BOOL TranslatePath
  27. );
  28. HANDLE
  29. APIENTRY
  30. NtNativeCreateNamedPipeA(
  31. LPCSTR lpName,
  32. DWORD dwOpenMode,
  33. DWORD dwPipeMode,
  34. DWORD nMaxInstances,
  35. DWORD nOutBufferSize,
  36. DWORD nInBufferSize,
  37. DWORD nDefaultTimeOut,
  38. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  39. BOOL TranslatePath
  40. );
  41. #endif // #ifndef __NTNATIVE_H__