NetAddr_SetAllowType macro

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

Syntax


HRESULT NetAddr_SetAllowType(
  [in] HWND   hwnd,
  [in] WPARAM addrMask
);

Parameters

hwnd [in]

A handle to the network address control.

addrMask [in]

Specifies the network address types as one or more of the NET_STRING constants.

Return value

If this macro succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The mask set is the criterion used to validate a network address in the macro NetAddr_GetAddress.

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shellapi.h

See also

NetAddr_GetAllowType

 

 

Show: