<< back to sysax.com Product page

15.3. Get Computer Name

The GetCompName method can be used to retrieve the name of the current computer that is being used.

Exhibit 15.5. IDL Definition of method to get computer name


HRESULT GetCompName ([out, retval] BSTR *b_compname);


Exhibit 15.6. Example usage of method to get computer name (VBScript)


Dim cval
cval = app.GetCompName