This method simply inserts "c:\winnt\system32\inetsvr\" at the beginning of the string passed as the first argument. If "somedb" is passed, the BSTR at the address returned as the second argument would contain "c:\winnt\system32\inetsvr\somedb".
IDL Definition
HRESULT LocalPathToFullPath(
[in] BSTR bstrLocal,
[out, retval] BSTR *pbstrFull
);
Parameters
bstrLocal
the string to insert the standard filesystem path "c:\winnt\system32\inetsvr" at the beginning of.
pbstrFull
on return, the address of a BSTR variable containing the standard full path.
Return Values
a standard HRESULT value
Example
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set DSCfg = ObjCreator.CreateObjAuth("MemAdmin.DSConfig.1")
LName="mpinst5.mdb"
If DSCfg.ValidateJetFileName(DSCfg.localnametofullname(Lname),0) Then
WScript.Echo "File " & Lname & " exists in standard location"
End If