Click to return to the Web Content Management home page    
WpDoesSiteExist Function     WpGetErrorString Function     Web Publishing Programmer...    
Web Workshop  |  Web Content Management

WpEnumProviders Function


Retrieves the list of all currently registered providers.

Syntax

DWORD WpEnumProviders(
    LPDWORD pdwProvidersBufLen,
    LPWPPROVINFO pProvidersBuffer,
    LPDWORD pdwNumProviders
);

Parameters

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 pProvidersBuffer is NULL or points to a large enough buffer.

Return Value

Returns one of the following values:

NO_ERRORSuccessful.
E_INVALIDARGOne of the arguments is invalid.
E_OUTOFMEMORYNot enough memory to list all currently registered providers.
WEBPOST_ERROR_ENUM_PROVSAn error occurred while the Web Publishing API was enumerating the providers on this system.
WEBPOST_ERROR_INIT_FAILEDAn error occurred while attempting to initialize the Web Publishing API DLL.
WEBPOST_ERROR_PROV_CORRUPTThe Web Publishing API could not retrieve all of the required service provider information.

Example

The following example shows how the WpEnumProviders function is called to retrieve the list of all currently registered providers.

{
    HRESULT hResult = NOERROR;
    DWORD BufLen;
    DWORD Num;

    hResult = WpEnumProviders(&BufLen, NULL, &Num);
}

Function Information

Windows NTUse version 4.0 and later
WindowsUse Windows 95 and later
HeaderDeclared in Wpapi.h
Import LibraryLink with WebPost.lib
Minimum availabilityInternet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.