Einzelnen Beitrag anzeigen

generic

Registriert seit: 24. Mär 2004
Ort: bei Hannover
2.415 Beiträge
 
Delphi XE5 Professional
 
#1

IDsObjectPicker (Directory Object Picker)

  Alt 19. Jul 2005, 10:02
Ich versuche seit mehreren Stunden zusätzliche Daten aus dem Directory Object Picker Dialog zu bekommen.

In der DSOP_INIT_INFO Struktur übergebe ich, das ich 3 zusätzliche Attribute brauche. (objectGuid, ObjectSid, SamName)
Dazu setze ich cAttributesToFetch und apwzAttributeNames.

Nach dem Aufruf von InvokeDialog und der Ermittlung von der DS_SELECTION_LIST Struktur, stehe ich nun vor meinem Problem.
Die Daten die ich brauche, sind in der DS_SELECTION Struktur unter dem Attribut pvarFetchedAttributes abgelegt.
Dieses ist in der JwaObjSel vom Typ POleVariant.

Info MSDN:
Zitat:
pvarFetchedAttributes
Pointer to an array of VARIANT structures. Each VARIANT contains the value of an attribute of the selected object. The attributes retrieved are determined by the attribute names specified in the apwzAttributeNames member of the DSOP_INIT_INFO structure passed to the IDsObjectPicker::Initialize method. The order of attributes in the pvarFetchedAttributes array corresponds to the order of attribute names specified in the apwzAttributeNames array.
The object picker dialog box may not be able to retrieve the requested attributes. If the attribute cannot be retrieved, the vt member of the VARIANT structure contains VT_EMPTY.
So jetzt ihr bitte...
Miniaturansicht angehängter Grafiken
idsobjectpicker_159.jpg  
Angehängte Dateien
Dateityp: zip dsobjectpicker_208.zip (2,0 KB, 31x aufgerufen)
Coding BOTT - Video Tutorials rund um das Programmieren - https://www.youtube.com/@codingbott
  Mit Zitat antworten Zitat