次の方法で共有


RegSecureKey (Compact 2013)

3/26/2014

This structure specifies what root keys must be protected in the system from non-trusted applications.

Syntax

typedef struct RegSecureKey {
  WORD wRoots;
  WORD wLen;
  LPWSTR pName;
} RegSecureKey;

Members

  • wRoots
    Bitmask of values that describes the predefined reserved roots the protected key is under. The following table shows possible values.

    Value

    Description

    REGSEC_HKCR

    Secure under HKEY_CLASSES_ROOT.

    REGSEC_HKCU

    Secure under HKEY_CURRENT_USER.

    REGSEC_HKLM

    Secure under HKEY_LOCAL_MACHINE.

    REGSEC_HKUS

    Secure under HKEY_USERS.

  • wLen
    Length of the string pointed to by pName, not including the terminating NULL.
  • pName
    Pointer to a buffer containing the name of the key to protect.

Remarks

The key specified by pName must be a key directly off the root of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_USERS, or HKEY_CLASSES_ROOT. This protects data in this key and all its subkeys.

Requirements

Header

pwinreg.h

See Also

Reference

Registry Structures
RegSecureKeyList

Other Resources

IOCTL_HAL_GETREGSECUREKEYS (deprecated)