Jump to content

Recommended Posts

Hi everyone,

 

I wonder if any of you brave souls can help with this problem...

 

I've want to call a COM function that has the following fingerprint:

 

        function Connect(

                /* VT_VARIANT [12] [in]                    */ $SecurityToken,

                /* VT_BSTR [8] [in]                          */ $Workstation,

                /* VT_BSTR [8] [in]                          */ $SecurityContext,

                /* VT_PTR [26] [out] --> VT_PTR [26]  */ &$Connection

                )

 

where the fourth parameter 'Connection' is a returned pointer to another com interface.

 

How do I go about calling this routine? - every thing i've tried passing as the fourth paramter always a gives a 'Parameter 0: Type mismatch' error.

 

Ideally i'd like to instantiate a variant of the correct type and pass that as the fourth parameter but the variant needs to be of type VT_PTR and php doesn't seem to want to allow me to do this. It doesn't recognise type VT_PTR as a valid variant type in the variant constructor.

 

Thanks in advance...

 

Paul. 

 

 

Link to comment
https://forums.phpfreaks.com/topic/53116-php-522-and-com-variants/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.