1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New param in QueryIsPluginCommand?

Discussion in 'Plugins' started by vefatica, Aug 30, 2009.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    The declaration (one argument) of QueryIsPluginCommand() doesn't match the actual function. What's the new, second, wchar_t* parameter for?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    vefatica 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!)

    Rex
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    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
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    vefatica wrote:

    Internal name.

    Rex
     

Share This Page