Back to index

lightning-sunbird  0.9+nobinonly
nsDirectoryServiceUtils.h File Reference
#include "nsIServiceManager.h"
#include "nsIProperties.h"
#include "nsServiceManagerUtils.h"
#include "nsCOMPtr.h"
#include "nsXPCOMCID.h"
#include "nsIFile.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


nsresult NS_GetSpecialDirectory (const char *specialDirName, nsIFile **result)

Function Documentation

nsresult NS_GetSpecialDirectory ( const char *  specialDirName,
nsIFile **  result 
) [inline]

Definition at line 50 of file nsDirectoryServiceUtils.h.

    nsresult rv;
    nsCOMPtr<nsIProperties> serv(do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, &rv));
    if (NS_FAILED(rv))
        return rv;

    return serv->Get(specialDirName, NS_GET_IID(nsIFile),
                     NS_REINTERPRET_CAST(void**, result));

Here is the call graph for this function: