API Reference > OdDb Classes > OdDbHostAppServices Class > OdDbHostAppServices Methods > OdDbHostAppServices::getPassword Method
OdDbHostAppServices::getPassword Method
Syntax
C++
virtual bool getPassword(const OdString& dwgName, bool isXref, OdPassword& password);
Parameters 
Description 
const OdString& dwgName 
[in] Drawing file requiring the password.  
bool isXref 
[in] True if and only if the drawing file is being opened as an Xref.  
OdPassword& password 
[out] Password. 

Notification function called whenever a drawing file requires a *password.* 

 

Prompts the user for a password and returns said password. 

Returns false if the user cancels the password entry, or if there is no user. 

The default implementation of this function does nothing but return false.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.