Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

New param in QueryIsPluginCommand?

May
12,935
171
The declaration (one argument) of QueryIsPluginCommand() doesn't match the actual function. What's the new, second, wchar_t* parameter for?
 
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
 
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
 
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
 
Back
Top