
Users Full-Name in Netware 3.12
Quote:
>Hi.
>Does anyone know how to get the users full name out of novells netware
>3.12??
>Reading the logname works great with API-Function wnetgetuser but this damn
>fullname wont.
>thanks for any help.
>Ingo
The VB Declaration is
'
' ReadPropertyValue
' Returns the value of a property associated with a bindary object
'
' >ObName$ = Bindary object name
' >ObType% = Bindary object type
' >PropName$ = Bindary property name
' IDENTIFICATION = Return objects full name
' >SegNum% = Bindary Segment number
' <PropVal = 128 bytes array of value of bindary property
' <MoreSegs$ = 1 byte flag set if there are more segments to read
' <PropFlags = 1 byte flag set if the property is a bindary set
Declare Function ReadPropertyValue% Lib "NwNetAPI.DLL" (ByVal ObName$,
ByVal ObType%, ByVal PropName$, ByVal SegNum%, ByVal PropVal$, ByVal
MoreSegs$, ByVal Propflag$)
and the call is
'
' Set Object type = 1 (USER)
'
ObjectType% = 1
'
' Get id information for the user id
'
RetVal% = ReadPropertyValue(RTrim$(Myid), ObjectType%,
"IDENTIFICATION", 1, FullName, Segflag, Propflag)
Richard
Remove the xxx from my address to reply to me.
Richard Cole
---
Any views expressed are not necessarily the views of my employers,who may or may not have a view on this subject.