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.

53 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. csrthrd.c
  5. Abstract:
  6. This module implements functions that are used by the Win32 Thread Object APIs
  7. to communicate with csrss.
  8. Author:
  9. Michael Zoran (mzoran) 21-Jun-1998
  10. Revision History:
  11. --*/
  12. #include "basedll.h"
  13. NTSTATUS
  14. CsrBasepCreateThread(
  15. HANDLE ThreadHandle,
  16. CLIENT_ID ClientId
  17. )
  18. {
  19. #if defined(BUILD_WOW6432)
  20. return NtWow64CsrBasepCreateThread(ThreadHandle,
  21. ClientId);
  22. #else
  23. BASE_API_MSG m;
  24. PBASE_CREATETHREAD_MSG a = &m.u.CreateThread;
  25. a->ThreadHandle = ThreadHandle;
  26. a->ClientId = ClientId;
  27. CsrClientCallServer( (PCSR_API_MSG)&m,
  28. NULL,
  29. CSR_MAKE_API_NUMBER( BASESRV_SERVERDLL_INDEX,
  30. BasepCreateThread
  31. ),
  32. sizeof( *a )
  33. );
  34. return m.ReturnValue;
  35. #endif
  36. }