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.

59 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. iprtrapi.h
  5. Abstract:
  6. Some private APIs for ip router. These exported in static lib iprtrint.lib
  7. Revision History:
  8. Anshul Dhir Created
  9. --*/
  10. #ifndef __IPRTRINT_H__
  11. #define __IPRTRINT_H__
  12. DWORD WINAPI
  13. InternalUpdateProtocolStatus(
  14. DWORD dwProtocolId,
  15. DWORD dwOperationId,
  16. DWORD dwFlags
  17. );
  18. DWORD WINAPI
  19. InternalUpdateDNSProxyStatus(
  20. DWORD dwOperationId,
  21. DWORD dwFlags);
  22. //////////////////////////////////////////////////////////////////////////////
  23. // //
  24. // Macros, Flags and operation codes for //
  25. // InternalUpdateProtocolStatus function //
  26. // //
  27. //////////////////////////////////////////////////////////////////////////////
  28. #define UPI_FLAG_WRITE_TO_CONFIG 0x0001
  29. #define UPI_OP_ENABLE 1
  30. #define UPI_OP_DISABLE 2
  31. #define UPI_OP_RESTORE_CONFIG 3
  32. #define DNSProxyEnable() InternalUpdateDNSProxyStatus( \
  33. UPI_OP_ENABLE, \
  34. 0)
  35. #define DNSProxyDisable() InternalUpdateDNSProxyStatus( \
  36. UPI_OP_DISABLE, \
  37. 0)
  38. #define DNSProxyRestoreConfig() InternalUpdateDNSProxyStatus( \
  39. UPI_OP_RESTORE_CONFIG, \
  40. 0)
  41. #endif // __IPRTRINT_H__