Skip to content

Latest commit

 

History

History
84 lines (48 loc) · 2.01 KB

ncm-setallowtype.md

File metadata and controls

84 lines (48 loc) · 2.01 KB
description title ms.topic ms.date ms.assetid api_name api_type api_location topic_type
Sets the network address types that a specified network address control accepts.
NCM_SETALLOWTYPE message (Shellapi.h)
reference
05/31/2018
FD998452-047A-4aea-A08E-8F6F8C30115B
NCM_SETALLOWTYPE
HeaderDef
Shellapi.h
APIRef
kbSyntax

NCM_SETALLOWTYPE message

Sets the network address types that a specified network address control accepts.

NCM_SETALLOWTYPE

    wParam = (WPARAM) (DWORD) addrMask;

    lParam = 0;            

            

Parameters

addrMask [in]

Specifies the network address types as one or more of the **NET\_STRING** constants.

lParam

Must be zero.

Return value

Returns S_OK if successful, or an error value otherwise.

Remarks

The mask set is the criterion used to validate a network address in the NCM_GETADDRESS message.

Use this message for a network address control only. To instantiate, use the class msctls_netaddress defined in Shellapi.h. Call InitNetworkAddressControl at run time before sending this message. This initializes the common controls library that contains the network address control.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Shellapi.h

See also

NCM_GETALLOWTYPE

NetAddr_SetAllowType