Sunday, January 3, 2021

OLE COM Objects OleInitialize CoCreateInstance

Notes from IDA


OleInitialize ==> tells you you're going to use COM

CoCreateInstance ==> Initializes an object, such as Internet Explorer Web Browser

    rclsid ==> 0002DF01-0000-0000-C000-000000000045 is Internet Explorer

    riid ==> D30C1661-CDAF-11D0-8A3E-00C04FC9E26E is Web Browser


So an example:

  Url = "http://www.ebay.com"

  OleInitialize()

  CoCreateInstance("0002DF01....", null, CLSCTX_LOCAL_SERVER, "D30C1661....", ptr)

  ptr.Navigator(Url, , , , ,)