Important: The information in this document is obsolete and should not be used for new development.
PBHGetLogInInfo
You can use thePBHGetLogInInfo
function to determine the login method used to log on to a particular shared volume.
FUNCTION PBHGetLogInInfo (paramBlock: HParmBlkPtr; async: Boolean): OSErr;
paramBlock
- A pointer to an
objParam variant of the HFS parameter block.
async
- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioVRefNum
Integer
The volume specification. <-- ioObjType
Integer
The login method. <-- ioObjNamePtr
Ptr
A pointer to the user name. DESCRIPTION
ThePBHGetLogInInfo
function returns the method used for login and the user name specified at login time for the volume specified by theioVRefNum
field. The login user name is returned as a Pascal string inioObjNamePtr
. The maximum size of the user name is 31 characters. The login method type is returned in theioObjType
field. These values are recognized.
CONST kNoUserAuthentication = 1; {no password} kPassword = 2; {8-byte password} kEncryptPassword = 3; {encrypted 8-byte password} kTwoWayEncryptPassword = 6; {two-way random encryption}Values in the range 7-127 are reserved for future use by Apple Computer, Inc. Values in the range 128-255 are available to your application as user-defined values.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBHGetLogInInfo
are
Trap macro Selector _HFSDispatch $0031 RESULT CODES
noErr 0 No error nsvErr -35 Specified volume doesn't exist paramErr -50 Function not supported by volume