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.

73 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. sporder.h
  5. Abstract:
  6. This header prototypes the 32-Bit Windows functions that are used
  7. to change the order or WinSock2 transport service providers and
  8. name space providers.
  9. Revision History:
  10. --*/
  11. int
  12. WSPAPI
  13. WSCWriteProviderOrder (
  14. IN LPDWORD lpwdCatalogEntryId,
  15. IN DWORD dwNumberOfEntries
  16. );
  17. /*++
  18. Routine Description:
  19. Reorder existing WinSock2 service providers. The order of the service
  20. providers determines their priority in being selected for use. The
  21. sporder.exe tool will show you the installed provider and their ordering,
  22. Alternately, WSAEnumProtocols(), in conjunction with this function,
  23. will allow you to write your own tool.
  24. Arguments:
  25. lpwdCatalogEntryId [in]
  26. An array of CatalogEntryId elements as found in the WSAPROTOCOL_INFO
  27. structure. The order of the CatalogEntryId elements is the new
  28. priority ordering for the service providers.
  29. dwNumberOfEntries [in]
  30. The number of elements in the lpwdCatalogEntryId array.
  31. Return Value:
  32. ERROR_SUCCESS - the service providers have been reordered.
  33. WSAEINVAL - input parameters were bad, no action was taken.
  34. ERROR_BUSY - the routine is being called by another thread or process.
  35. any registry error code
  36. Comments:
  37. Here are scenarios in which the WSCWriteProviderOrder function may fail:
  38. The dwNumberOfEntries is not equal to the number of registered service
  39. providers.
  40. The lpwdCatalogEntryId contains an invalid catalog ID.
  41. The lpwdCatalogEntryId does not contain all valid catalog IDs exactly
  42. 1 time.
  43. The routine is not able to access the registry for some reason
  44. (e.g. inadequate user persmissions)
  45. Another process (or thread) is currently calling the routine.
  46. --*/