sbstrADspath := m_spADObject.get_ADsPath;
Can be changed to
sbstrADspath := m_spADObject.ADsPath;
The Get_ and Set_ methods are property getters and setters just like in Delphi.
hr you can ignore. This is just
COM error return value which is already hidden by the Delphi
COM interface.
If really an error arises then your computer is already screwed up completely so no real need to catch it.