Поделиться через


WZCQueryContext (Windows Embedded CE 6.0)

1/6/2010

This function retrieves WZC service parameters.

Syntax

DWORD WZCQueryContext(
  LPWSTR pSrvAddr,
  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 Value

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

Header wzcsapi.h
Library Wzcsapi.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

Automatic Configuration Functions
WZCSetContext