PBHGetLogInInfo
You can use the PBHGetLogInInfo 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
The PBHGetLogInInfo function returns the method used for login and the user name specified at login time for the volume specified by the ioVRefNum field. The login user name is returned as a Pascal string in ioObjNamePtr. The maximum size of the user name is 31 characters. The login method type is returned in the ioObjType 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 for PBHGetLogInInfo 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 |