CBrowserCapsSvc::Initialize 

Call this method to initialize the browser capabilities service object.


HRESULT Initialize(
   HINSTANCE hInstance 
);

Parameters

hInstance

The HINSTANCE of the module whose path is used to locate the browscap.ini file.

Returns S_OK on success, or an error HRESULT on failure.

The information about the capabilities of each browser is kept in a file called browscap.ini. This file will be loaded from the same location as the module whose HINSTANCE is used to initialize this object if present or from the inetsrv directory beneath the system directory otherwise.

During initialization, browscap.ini is read and parsed. As a result, changes made to browscap.ini following initialization will not be reflected in the information returned by this object.

Community Additions

ADD
Show: