Contents Index Topic Contents | ||
Previous Topic: WpDoesSiteExist Next Topic: WpGetErrorString |
WpEnumProviders
DWORD WpEnumProviders( [in, out] LPDWORD pdwProvidersBufLen [out] LPWPPROVINFO pProvidersBuffer [out] LPDWORD pdwNumProviders );Retrieves the list of all currently registered providers.
- Returns NO_ERROR if successful. Otherwise, returns an error code, which may be one of the following:
E_INVALIDARG E_OUTOFMEMORY WEBPOST_ERROR_INIT_FAILED WEBPOST_ERROR_PROV_CORRUPT WEBPOST_ERROR_ENUM_PROVS More information about these error codes can be found in Appendix B, Error Codes.
- pdwProvidersBufLen
- Size, in bytes, of pProvidersBuffer. On return, contains the actual number of bytes used in pProvidersBuffer. If pProvidersBuffer is NULL or too small to hold all the providers, this parameter shows the necessary size of the buffer to allocate.
- pProvidersBuffer
- Receives an array of WPPROVINFO structures.
- pdwNumProviders
- Number of providers. This value is set whether or not pProvidersBuffer is NULL or points to a large enough buffer.
Examples
C/C=++{ HRESULT hResult = NOERROR; DWORD BufLen; DWORD Num; hResult = WpEnumProviders(&BufLen, NULL, &Num); }
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.