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.

26 lines
1.2 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: cliserv.h
  3. *
  4. *
  5. * Copyright (c) 1997-1999 Microsoft Corporation
  6. *
  7. \**************************************************************************/
  8. typedef struct _CLISERV {
  9. CSOBJ Object; // public's view of this
  10. KEVENT ServerEvent; // server waits on this
  11. KEVENT ClientEvent; // client waits on this
  12. struct _CLISERV *pNext; // pointer to next in linked list
  13. COPY_PROC *pfnCopy; // pointer to copy function
  14. PVOID pvCopyArg; // to be passed to copy function
  15. CLIENT_PROC *pfnClient; // pointer to client function
  16. PVOID pvClientArg; // to be passed to client fucntion
  17. HSEMAPHORE hsem; // serializes client access
  18. PEPROCESS pServerProcess;// pointer to server process
  19. PETHREAD pServerThread; // for debugging purposes
  20. struct {
  21. unsigned int waitcount : 31; // # processes waiting on hsem
  22. unsigned int isDead : 1; // signals death
  23. } state;
  24. PROXYMSG *pMsg; // supplied by server
  25. } CLISERV;