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.

59 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: wxlpcp.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 4-18-97 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __WXLPCP_H__
  18. #define __WXLPCP_H__
  19. typedef enum _WXLPC_MTYPE {
  20. WxGetKeyDataApi,
  21. WxReportResultsApi,
  22. WxMaxValueApi
  23. } WXLPC_MTYPE ;
  24. typedef struct _WXLPC_GETKEYDATA {
  25. WX_AUTH_TYPE ExpectedAuth ;
  26. ULONG BufferSize ;
  27. ULONG BufferData ;
  28. UCHAR Buffer[ 16 ];
  29. } WXLPC_GETKEYDATA ;
  30. typedef struct _WXLPC_REPORTRESULTS {
  31. NTSTATUS Status ;
  32. } WXLPC_REPORTRESULTS ;
  33. typedef struct _WXLPC_MESSAGE {
  34. PORT_MESSAGE Message;
  35. NTSTATUS Status ;
  36. WXLPC_MTYPE Api ;
  37. union {
  38. WXLPC_GETKEYDATA GetKeyData ;
  39. WXLPC_REPORTRESULTS ReportResults ;
  40. } Parameters ;
  41. } WXLPC_MESSAGE, * PWXLPC_MESSAGE ;
  42. #define WX_PORT_NAME L"\\Security\\WxApiPort"
  43. //#define WX_PORT_NAME L"\\BaseNamedObjects\\WxApiPort"
  44. #define PREPARE_MESSAGE( Message, ApiCode ) \
  45. (Message).Message.u1.s1.DataLength = sizeof((Message)) - sizeof(PORT_MESSAGE); \
  46. (Message).Message.u1.s1.TotalLength = sizeof((Message)); \
  47. (Message).Message.u2.ZeroInit = 0L; \
  48. (Message).Api = ApiCode ;
  49. #endif // __WXLPCP_H__