Back to index

lightning-sunbird  0.9+nobinonly
Static Public Member Functions
nsOutlookRegUtil Class Reference

#include <nsOutlookRegUtil.h>

List of all members.

Static Public Member Functions

static BYTEGetValueBytes (HKEY hKey, const char *pValueName)
static void FreeValueBytes (BYTE *pBytes)

Detailed Description

Definition at line 43 of file nsOutlookRegUtil.h.


Member Function Documentation

void nsOutlookRegUtil::FreeValueBytes ( BYTE pBytes) [static]

Definition at line 60 of file nsOutlookRegUtil.cpp.

{
       if (pBytes)
              delete [] pBytes;
}

Here is the caller graph for this function:

BYTE * nsOutlookRegUtil::GetValueBytes ( HKEY  hKey,
const char *  pValueName 
) [static]

Definition at line 41 of file nsOutlookRegUtil.cpp.

{
       LONG   err;
       DWORD  bufSz;
       LPBYTE pBytes = NULL;

       err = ::RegQueryValueEx( hKey, pValueName, NULL, NULL, NULL, &bufSz); 
       if (err == ERROR_SUCCESS) {
              pBytes = new BYTE[bufSz];
              err = ::RegQueryValueEx( hKey, pValueName, NULL, NULL, pBytes, &bufSz);
              if (err != ERROR_SUCCESS) {
                     delete [] pBytes;
                     pBytes = NULL;
              }
       }

       return( pBytes);
}

Here is the caller graph for this function:


The documentation for this class was generated from the following files: