Partager via


QueryPolicy

4/8/2010

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

Syntax

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 Value

Returns a standard HRESULT value.

Remarks

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

Requirements

Header devmgmt.h
Library aygshell.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smart Phone for Windows Mobile Version 5.0 and later

See Also

Concepts

Configuration Service Providers

Other Resources

Device Management Functions
Managing Windows Mobile Devices
Provisioning Concepts