Identifying first and/or last document of a batch in hook function

Is there any way of knowing that you are processing the first document in a batch when you're in a hook function?

Specifically, I'm wanting to prompt the user if they want to copy attributes to a document being imported, and--if they import a batch of them--give them the option of applying their response to all of the documents in the batch.  But since the Pre- and Post-Hook functions are called for each document individually, I can't figure out how to know where we are in the submitted batch.

  • In case anyone wondered, a co-worker helped to figure out a solution.  Here are the relevant pieces.

    // Add this hook function to catch a drop to folder
            aaApi_AddHook (AAHOOK_IMPORTBYDROPHANDLE, AAACTIONHOOK,    DropDocument_ActionHook);

    // Function to catch a drop to a folder
    LONG  AAAPIHOOK DropDocument_ActionHook
    (
       LONG hookId,
       LONG hookType,
       AAPARAM aParam1,    
       AAPARAM aParam2,
       AARESULT* pResult
    )
    {
    ...

       if (aParam2 != AAOPER_DLG_IMPORTBYDROPHANDLE)
            return AAHOOK_SUCCESS;

        AAPROJECTDLG_PARAM * p = (AAPROJECTDLG_PARAM *) aParam1;

    // Get dropped file count
       UINT uiCount = DragQueryFile ((HDROP)p->lpParam , (UINT)-1, (LPWSTR)NULL, 0);

      // Get dropped file names
       for (UINT i = 0; i < uiCount; i++)
       {
          WCHAR  tchFileName[AAAPI_MAX_FILENAME];
          if (!DragQueryFile ((HDROP)p->lpParam, (UINT)i, (LPWSTR)tchFileName, AAAPI_MAX_FILENAME))
          {

    ...