<msdn>
<functions>
<ADsPropCheckIfWritable>
<name>ADsPropCheckIfWritable</name>
<dll>Dsprop.dll</dll>
<description>The ADsPropCheckIfWritable function determines if an attribute can be written.</description>
<description_ZH>ADsPropCheckIfWritable函数确定是否可以写入属性。</description_ZH>
<arguments>
<argument>
<name>pwzAttr</name>
<description>Pointer to a NULL-terminated WCHAR buffer that contains the name of the attribute.</description>
<description_ZH>指向包含属性名称的以NULL结尾的WCHAR缓冲区的指针。</description_ZH>
</argument>
<argument>
<name>pWritableAttrs</name>
<description>Pointer to the array of ADS_ATTR_INFO structures returned by ADsPropGetInitInfo.</description>
<description_ZH>指向由ADsPropGetInitInfo返回的ADS_ATTR_INFO结构数组的指针。</description_ZH>
</argument>
</arguments>
<returns>Returns non-zero if the attribute is found in the writable-attribute list or zero otherwise. Also returns zero if pWritableAttrs is NULL.</returns>
<returns_ZH>如果在可写属性列表中找到属性,则返回非零值,否则返回零。如果pWritableAttrs为NULL,也返回零。</returns_ZH>
<Syntax>BOOL ADsPropCheckIfWritable( __in const PWSTR pwzAttr, __in const PADS_ATTR_INFO pWritableAttrs );</Syntax>
<Value>ADsPropCheckIfWritable;WCHAR;ADS_ATTR_INFO;ADsPropGetInitInfo;</Value>
</ADsPropCheckIfWritable>
<ADsPropCreateNotifyObj>
<name>ADsPropCreateNotifyObj</name>
<dll>Dsprop.dll</dll>
<description>The ADsPropCreateNotifyObj function is used to create, or obtain, a notification object for use by an Active Directory Domain Services property sheet extension.</description>
<description_ZH>ADsPropCreateNotifyObj函数用于创建或获取通知对象以供Active Directory域服务属性表扩展使用。</description_ZH>
<arguments>
<argument>
<name>pAppThdDataObj</name>
<description>A pointer to the IDataObject object that represents the directory object that the property page applies to. This is the IDataObject passed to the property page IShellExtInit::Initialize method.</description>
<description_ZH>指向表示属性页适用的目录对象的IDataObject对象的指针。这是传递给属性页面IShellExtInit :: Initialize方法的IDataObject。</description_ZH>
</argument>
<argument>
<name>pwzADsObjName</name>
<description>The Active Directory Domain Services object name obtained by calling the IDataObject::GetData method for the CFSTR_DSOBJECTNAMES clipboard format on the IDataObject represented by pAppThdDataObj.</description>
<description_ZH>通过为由pAppThdDataObj表示的IDataObject上的CFSTR_DSOBJECTNAMES剪贴板格式调用IDataObject :: GetData方法获得Active Directory域服务对象名称。</description_ZH>
</argument>
<argument>
<name>phNotifyObj</name>
<description>Pointer to an HWND value that receives the handle of the notification object.</description>
<description_ZH>指向接收通知对象的句柄的HWND值的指针。</description_ZH>
</argument>
</arguments>
<returns>Returns S_OK if successful, or an OLE-defined error value otherwise.</returns>
<returns_ZH>如果成功则返回S_OK,否则返回OLE定义的错误值。</returns_ZH>
<Syntax>HRESULT ADsPropCreateNotifyObj( __in LPDATAOBJECT pAppThdDataObj, __in PWSTR pwzADsObjName, __out HANDLE *phNotifyObj );</Syntax>
<Value>ADsPropCreateNotifyObj;IDataObject;CFSTR_DSOBJECTNAMES;HWND;</Value>
</ADsPropCreateNotifyObj>
<ADsPropGetInitInfo>
<name>ADsPropGetInitInfo</name>
<dll>Dsprop.dll</dll>
<description>The ADsPropGetInitInfo function is used to obtain directory object data that an Active Directory Domain Services property sheet extension applies to.</description>
<description_ZH>ADsPropGetInitInfo函数用于获取Active Directory域服务属性表扩展所适用的目录对象数据。</description_ZH>
<arguments>
<argument>
<name>hNotifyObject</name>
<description>The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.</description>
<description_ZH>通知对象的句柄。要获得此句柄,请调用ADsPropCreateNotifyObj。</description_ZH>
</argument>
<argument>
<name>pInitParams</name>
<description>Pointer to an ADSPROPINITPARAMS structure that receives the directory object data. The dwSize member of this structure must be entered before calling this function.</description>
<description_ZH>指向接收目录对象数据的ADSPROPINITPARAMS结构的指针。在调用此函数之前,必须先输入此结构的dwSize成员。</description_ZH>
</argument>
</arguments>
<returns>Returns non-zero if successful or zero otherwise.</returns>
<returns_ZH>如果成功返回非零值,否则返回零。</returns_ZH>
<Syntax>BOOL ADsPropGetInitInfo( __in HANDLE hNotifyObject, __out PADSPROPINITPARAMS pInitParams );</Syntax>
<Value>ADsPropGetInitInfo;ADsPropCreateNotifyObj;ADSPROPINITPARAMS;dwSize;</Value>
</ADsPropGetInitInfo>
<ADsPropSendErrorMessage>
<name>ADsPropSendErrorMessage</name>
<dll>Dsprop.dll</dll>
<description>The ADsPropSendErrorMessage function adds an error message to a list of error messages displayed by calling the ADsPropShowErrorDialog function.</description>
<description_ZH>ADsPropSendErrorMessage函数将错误消息添加到通过调用ADsPropShowErrorDialog函数显示的错误消息列表中。</description_ZH>
<arguments>
<argument>
<name>hNotifyObject</name>
<description>The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.</description>
<description_ZH>通知对象的句柄。要获得此句柄,请调用ADsPropCreateNotifyObj。</description_ZH>
</argument>
<argument>
<name>pError</name>
<description>Pointer to an ADSPROPERROR structure which contains data about the error message.</description>
<description_ZH>指向包含有关错误消息的数据的ADSPROPERROR结构的指针。</description_ZH>
</argument>
</arguments>
<returns>Returns non-zero if successful or zero otherwise.</returns>
<returns_ZH>如果成功返回非零值,否则返回零。</returns_ZH>
<Syntax>BOOL ADsPropSendErrorMessage( __in HANDLE hNotifyObject, __out PADSPROPERROR pError );</Syntax>
<Value>ADsPropSendErrorMessage;ADsPropShowErrorDialog;ADsPropCreateNotifyObj;ADSPROPERROR;</Value>
</ADsPropSendErrorMessage>
<ADsPropSetHwnd>
<name>ADsPropSetHwnd</name>
<dll>Dsprop.dll</dll>
<description>The ADsPropSetHwnd function is used to notify the notification object of the property page window handle.</description>
<description_ZH>ADsPropSetHwnd函数用于通知属性页面窗口句柄的通知对象。</description_ZH>
<arguments>
<argument>
<name>hNotifyObject</name>
<description>The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.</description>
<description_ZH>通知对象的句柄。要获得此句柄,请调用ADsPropCreateNotifyObj。</description_ZH>
</argument>
<argument>
<name>hPage</name>
<description>A window handle of the property page.</description>
<description_ZH>属性页面的窗口句柄。</description_ZH>
</argument>
</arguments>
<returns>Returns zero if the notific