Compartilhar via


WZCQueryContext (Windows CE 5.0)

Send Feedback

This function retrieves WZC service parameters.

DWORD WZCQueryContext(LPWSTRpSrvAddr,DWORD dwInFlags,PWZC_CONTEXT pContext,LPDWORD pdwOutFlags);

Parameters

  • pSrvAddr
    [in] Not used. This parameter must be set to NULL.

  • dwInFlags
    [in] Bitmask of flags that indicates the fields to be queried in the WZC_CONTEXT object pointed by the pContext parameter. For more information see the WZC_CONTEXT_CTL_TIMER flags described in Automatic Configuration Constants.

  • pContext
    [in, out] On input, pointer to the WZC_CONTEXT object.

    On output, requested interface data as a pointer to WZC_CONTEXT .

  • pdwOutFlags
    [out] DWORD that indicates the fields that were successfully queried. If such an indication is not required, then the application must pass NULL.

Return Values

Returns ERROR_SUCCESS if the operation is completed successfully, otherwise returns a Win32 error code.

Remarks

When calling this function, the application is must pass the address of an allocated WZC_CONTEXT object in the pContext parameter.

On return, the fields selected for querying by dwInFlags from the object pointed by pContext are populated by WZCSVC. In addition, if pdwOutFlags is not NULL, WZCSVC sets in the DWORD pointed by it the bits corresponding to the fields that were queried successfully.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Wzcsapi.h.
Link Library: Wzcsapi.lib.

See Also

WZCSetContext

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.