Export (0) Print
Expand All

PxeProviderEnumNext function

Enumerates registered providers.

Syntax


DWORD PXEAPI PxeProviderEnumNext(
  _In_   HANDLE hEnum,
  _Out_  PPXE_PROVIDER *ppProvider
);

Parameters

hEnum [in]

HANDLE returned by the PxeProviderEnumFirst function.

ppProvider [out]

Address of a PXE_PROVIDER structure with the uSizeOfStruct member filled in with the size of the structure. On return this structure is filled in with provider information. This structure can be freed with the PxeProviderFreeInfo function.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Examples


    if (ERROR_SUCCESS != PxeProviderEnumFirst(&hEnum))
    {
        //... Handle error
    }
    pProvider->uSizeOfStruct = sizeof(PXE_PROVIDER);

    while(PxeProviderEnumNext(hEnum, &pProvider) == ERROR_SUCCESS)
    {
         //... Process enumeration
         PxeProviderFreeInfo(pProvider);
    }
    PxeProviderEnumClose(hEnum);


Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP2 [desktop apps only]

Header

WdsPxe.h

Library

WdsPxe.lib

DLL

WdsPxe.dll

See also

Windows Deployment Services Server Functions
PXE_PROVIDER
PxeProviderEnumClose
PxeProviderEnumFirst
PxeProviderFreeInfo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft