New param in QueryIsPluginCommand?

May 20, 2008
9,144
58
Syracuse, NY, USA
The declaration (one argument) of QueryIsPluginCommand() doesn't match the actual function. What's the new, second, wchar_t* parameter for?
 

rconn

Administrator
Staff member
May 14, 2008
10,885
97
vefatica wrote:

> The declaration (one argument) of QueryIsPluginCommand() doesn't match the actual function. What's the new, second, wchar_t* parameter for?
If it's not NULL, QueryIsPluginCommand copies the plugin name containing
that command to the second argument.

I can't think of any reason why you would ever call it with a non-NULL
second argument. (For that matter, I can't really think of a reason why
you would ever call it at all!)

Rex
 
May 20, 2008
9,144
58
Syracuse, NY, USA
On Sun, 30 Aug 2009 11:48:02 -0500, rconn <> wrote:

|If it's not NULL, QueryIsPluginCommand copies the plugin name containing
|that command to the second argument.
|
|I can't think of any reason why you would ever call it with a non-NULL
|second argument. (For that matter, I can't really think of a reason why
|you would ever call it at all!)

What's copied to the buffer ... internal name, file name, FQ file name?

If it's simply the internal name, that could be used as a test of whether a
given plugin is already loaded (that's why I considered it).

if ( QueryIsPluginCommand(szMyCommand, szTmpName)
&& !lstrcmp(szMyName, szTmpName) ) /* already loaded */
--
- Vince
 

rconn

Administrator
Staff member
May 14, 2008
10,885
97
vefatica wrote:

> On Sun, 30 Aug 2009 11:48:02 -0500, rconn <> wrote:
>
> |If it's not NULL, QueryIsPluginCommand copies the plugin name containing
> |that command to the second argument.
> |
> |I can't think of any reason why you would ever call it with a non-NULL
> |second argument. (For that matter, I can't really think of a reason why
> |you would ever call it at all!)
>
> What's copied to the buffer ... internal name, file name, FQ file name?
Internal name.

Rex