wpQueryOpenFolders - Example Code

In this example, we enumerate all open folders in the system. In the first call to the wpQueryOpenFolders method, we must pass the pointer to any folder. In the subsequent calls to the wpQueryOpenFolders method, we must pass the pointer to the folder returned by the previous call to the wpQueryOpenFolders method.

    WPFolder    *Folder;

    /* Find the first open folder  */
    Folder = _wpQueryOpenFolders(somSelf,QC_FIRST);
    while (Folder)
    {

       /***** Code to process the folder goes here *****/

       /* Find the next open folder   */
       Folder = _wpQueryOpenFolders(Folder,QC_NEXT);
    }


[Back: wpQueryOpenFolders - Related Methods]
[Next: wpQueryOpenFolders - Topics]