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
826 B

  1. /*++
  2. Copyright (C) 1997 Microsoft Corporation
  3. Module:
  4. apiarg.h
  5. Author:
  6. Ramesh V K (RameshV)
  7. Abstract:
  8. argument marshalling, unmarshalling helper routines.
  9. Environment:
  10. Win32 usermode, Win98 VxD
  11. --*/
  12. #ifndef _APIARGS_
  13. #define _APIARGS_
  14. //
  15. // Each argument for API is maintained like this.
  16. //
  17. typedef struct _DHCP_API_ARGS {
  18. BYTE ArgId;
  19. DWORD ArgSize;
  20. LPBYTE ArgVal;
  21. } DHCP_API_ARGS, *PDHCP_API_ARGS, *LPDHCP_API_ARGS;
  22. DWORD
  23. DhcpApiArgAdd(
  24. IN OUT LPBYTE Buffer,
  25. IN ULONG MaxBufSize,
  26. IN BYTE ArgId,
  27. IN ULONG ArgSize,
  28. IN LPBYTE ArgVal OPTIONAL
  29. );
  30. DWORD
  31. DhcpApiArgDecode(
  32. IN LPBYTE Buffer,
  33. IN ULONG BufSize,
  34. IN OUT PDHCP_API_ARGS ArgsArray OPTIONAL,
  35. IN OUT PULONG Size
  36. );
  37. #endif _APIARGS_