Important: The information in this document is obsolete and should not be used for new development.
PBHGetLogInInfo
You can use thePBHGetLogInInfofunction 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.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioVRefNumIntegerThe volume specification. <-- ioObjTypeIntegerThe login method. <-- ioObjNamePtrPtrA pointer to the user name. DESCRIPTION
ThePBHGetLogInInfofunction returns the method used for login and the user name specified at login time for the volume specified by theioVRefNumfield. 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 theioObjTypefield. 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 forPBHGetLogInInfoare
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