ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

DWORD WSAAPI WsTcEntryInitializeFromRegistry ( IN PTCATALOG_ENTRY  CatalogEntry,
IN HKEY  ParentKey,
IN DWORD  UniqueId 
)

Definition at line 62 of file dcatitem.c.

{
    CHAR CatalogEntryName[13];
    DWORD RegSize;
    DWORD RegType = REG_BINARY;
    HKEY EntryKey;
    DWORD Return;

    /* Convert to a 00000xxx string */
    sprintf(CatalogEntryName, "%0""12""lu", UniqueId);

    /* Open the Entry */
    Return = RegOpenKeyEx(ParentKey,
                          CatalogEntryName,
                          0,
                          KEY_READ,
                          &EntryKey);

    /* Get Size of Catalog Entry Structure */
    Return = RegQueryValueExW(EntryKey, 
                              L"PackedCatalogItem",
                              0,
                              NULL,
                              NULL,
                              &RegSize);
    
    /* Read the Whole Catalog Entry Structure */
    Return = RegQueryValueExW(EntryKey, 
                              L"PackedCatalogItem",
                              0,
                              &RegType,
                              (LPBYTE)&CatalogEntry->DllPath,
                              &RegSize);

    /* Done */
    RegCloseKey(EntryKey);
    return Return;
}

Generated on Sat May 26 2012 05:20:10 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.