Using EnumProcesses method

  • I am trying to use the EnumProcesses method of the SQLServer object in C++. I have found the documentation fairly useless - both the SQLServer online books and MSDN. I can make a connection OK to the server and then I have:

    hr = pSQLServer->EnumProcesses(ppResults, szWho, lWho);

    With the arguments defined as:

    LPSQLDMOQUERYRESULTS* ppResults = NULL;

    SQLDMO_LPCSTR szWho = NULL;

    long lWho = -1;

    But the result handle always comes back as failed. As the documentation doesn't shed any light on what the 2nd and 3rd arguments are, I don't really have any idea on what is going wrong. Can anyone help?

    Thanks.

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply