Use DLL in PHP?

前端 未结 3 937
生来不讨喜
生来不讨喜 2021-02-09 02:30

I\'m not going to lie. I\'m not all the familiar with Windows and COM objects. That\'s why i\'m here. First of all is it possible to access a DLL from within a PHP script runnin

3条回答
  •  情深已故
    2021-02-09 03:05

    WHAT_GOES_HERE is the ProgID, Class ID or Moniker registered on the Operating System.

    Each of these can change for the same DLL registered on different machines. There are several ways to find what's the ProgID/CLSID/Moniker of a registered dll. You can search the web for "dll debugger", "dll export", "dll inspect" and you'll see several solutions, and also ways to show what functions the dll export so you can use them.

    The easiest way, you can just register the dll with Regsvr32.exe and search Window's register with regedit.exe for the dll's name, you might need to search several times until you find the key under \HKEY_CLASSES_ROOT\, which is the ProgID.

    The command dcomcnfg.exe shows a lot of information about COM objects.

    If you have Visual Studio, the OLE/COM Object Viewer (oleview.exe) might be useful.

提交回复
热议问题