Share via


QueryPolicy

Send Feedback

This function retrieves the value of the policy specified. If the policy setting does not exist, zero (0) is returned.

HRESULT WINAPI QueryPolicy(
  DWORD dwPolicyId,
  PDWORD pdwPolicyValue
);

Parameters

  • dwPolicyId
    [in] The policy identifier.
  • pdwPolicyValue
    [in] Pointer to the value of the policy. The value pointed to by pdwPolicyValue holds the value of the policy identified by dwPolicyId.

Return Values

Returns a standard HRESULT value.

Remarks

This function allows you to query policies without creating and processing an XML document.

Requirements

Pocket PC: Windows Mobile Version 5.0 and later.
Smartphone: Windows Mobile Version 5.0 and later.
Header: Devmgmt.h.
Library: Aygshell.lib.

See Also

Device Configuration API | Configuration Service Providers | Managing Devices | Provisioning for Windows Mobile-Based Devices

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.