Source code of Windows XP (NT5)
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.

44 lines
1.2 KiB

  1. // Purpose: This is a DLL which is the INFO client End of RegSrv
  2. // Author : RajNath
  3. // Exported Funcs:
  4. //
  5. //
  6. // Will connect to the corresponding RegSrv. Returns a "HANDLE"
  7. // to be used only with Func. exported by this DLL.
  8. //
  9. // HANDLE AddRegSrv(IN char *Server,IN char *PipeName,OUT DWORD &Count);
  10. //
  11. //
  12. // Will Wait for Data until available. Will return FALSE incase of
  13. // failure - this means its been disconnected from the corresponding RegSrv.
  14. // Must not call ReadRegSrv with this - attempt reconnect again by calling
  15. // AddRegSrv().
  16. //
  17. //
  18. // BOOL ReadRegSrv(IN OUT PVOID Buff,IN DWORD Len,OUT HANDLE *From);
  19. #define MAX_REGSRV 63
  20. HANDLE
  21. AddRegSrv(char *Server, char *Name,DWORD *Count);
  22. BOOL
  23. ReadRegSrv(IN OUT PVOID Buff,IN DWORD Len,OUT HANDLE *From);
  24. typedef struct
  25. {
  26. SYSTEMTIME StartTime;
  27. TCHAR MachineName[MAX_COMPUTERNAME_LENGTH+1];
  28. DWORD Status;
  29. DWORD Ram;
  30. DWORD BuildNo;
  31. TCHAR EmailName[MAX_EMAILNAME_LENGTH+1] ;
  32. TCHAR Location[MAX_LOCATION_LENGTH+1] ;
  33. TCHAR DebugMachine[MAX_COMPUTERNAME_LENGTH+1] ;
  34. DWORD Cpu;
  35. TCHAR Run_Type[128];
  36. TCHAR CairoBld[16]; // CAIRO SPECIFIC
  37. WORD TestIds[64];
  38. }REGINFO, *PREGINFO;