大网数据广告活动
域与目录服务

WM_ADSPROP_SHEET_CREATE message

· 52CE 我爱测

Sent to the notification object to create a secondary property sheet in an Active Directory MMC snap-in.

The WM_ADSPROP_SHEET_CREATE message is sent to the notification object to create a secondary property sheet in an Active Directory MMC snap-in.

Note:
This message value is not defined in a published header file. To use this message value, you must define it yourself in the exact format shown.

#define WM_ADSPROP_SHEET_CREATE (WM_USER + 1108)
LRESULT SendMessage( (HWND)   hwnd, 
                     (UINT)   WM_ADSPROP_SHEET_CREATE,
                     (WPARAM) wParam, 
                     (LPARAM) lParam);

Parameters

hwnd

The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.

wParam

Contains a pointer to a DSA_SEC_PAGE_INFO structure that defines the secondary page to create. Only one secondary property sheet can be created with the WM_ADSPROP_SHEET_CREATE message, so the DSOBJECTNAMES structure can only contain one DSOBJECT structure.

lParam

Not used. Must be NULL.

Return value

The return value for this message is always zero.

Remarks

The caller must allocate the DSA_SEC_PAGE_INFO structure, the title string and all DSOBJECT strings using a single call to the LocalAlloc function. The WM_ADSPROP_SHEET_CREATE message is an asynchronous message, so it will return before the secondary sheet is created. Because of this, the memory must remain intact after the message returns. The receiver will free this memory with a single call to the LocalFree function after the secondary sheet is created.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008

See also

CFSTR_DS_PARENTHWND

DSA_SEC_PAGE_INFO

DSOBJECTNAMES

DSOBJECT

LocalAlloc

LocalFree

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。