Platform SDK: Exchange Server

PADMIN_SetObjectData

The PADMIN_SetObjectData Administrator extension function saves extension data to the directory object's extension data attribute.

Quick Info

Header file: ADMINEXT.H
Library: ADMINEXT.LIB

RC (* PADMIN_SetObjectData)(
  HWND hwnd, 
  BYTE * pb, 
  UINT cb,   
  BOOL fNew  
);
 

Parameters

hwnd
Input parameter. Handle to the current property sheet window.
pb
Input parameter. Points to the buffer holding the extension data object.
cb
Input parameter. The size, in bytes, of pb.
fNew
Input parameter. Specifies whether the extension data object is new (TRUE) or already exists (FALSE).

Return Values

The return value depends on the value of fNew and whether pB is unique, where unique means that no other extension data for the object has the same name.

fNew Value
(Is Object New?)

Is pB Object Unique

Return Code
TRUE Unique RC_SUCCESS
FALSE Unique RC_NOTFOUND
TRUE Not Unique RC_CONTENTION
FALSE Not Unique RC_SUCCESS

Remarks

Use PADMIN_SetObjectData to save extension data in response to a call to CommitDataProc.

For more information on this function, see Using Administrator Extension Functions (Called by Extension DLL).

See Also

ADMIN_Initialize, PADMIN_GetObjectData, PADMIN_GetObjectDataSize