SetDbgZone (Windows Embedded CE 6.0)

1/6/2010

This function sets or queries zones for either a process or a module, but not both.

Syntax

BOOL SetDbgZone(
  DWORD dwProcid,
  LPVOID lpvMod,
  LPVOID baseptr,
  DWORD zone,
  LPDBGPARAM lpdbgTgt
);

Parameters

  • dwProcid
    [in] Handle of the process for which to set or query zones.

    Set to zero if setting or querying zones for a module.

  • lpvMod
    [in] Identifier of the module for which to set or query zones.

    Set to zero if setting or querying zones for a process.

    This identifier should be obtained from a ToolHelp MODULEENTRY32 structure.

  • baseptr
    [in] Unsupported. Set to NULL.
  • zone
    [in] New zone flags, or set to 0xFFFFFFFF to query the process or module debugging zone information without modifying the zone.
  • lpdbgTgt
    [in] Pointer to a DBGPARAM structure to receive the process or module debugging zone information.

    The new zone settings for the process or module are stored in the ulZoneMask of this parameter.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

By combining SetDbgZone with the ToolHelp API, for example, CreateToolhelp32Snapshot, Module32First, and Module32Next, you can query and control zones for any process or module in the system.

Requirements

Header pkfuncs.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Kernel Functions

Other Resources

MODULEENTRY32
ToolHelp Reference