home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / system / rivatuner / RivaTuner20RC16.exe / Tools / NVXML / Include / Macro.rtl next >
Text File  |  2006-05-21  |  1KB  |  35 lines

  1. ; Registry keys
  2. macros "HKCU"                    , "$80000001"
  3. macros "HKLM"                    , "$80000002"
  4.  
  5. ; Registry value types
  6. macros "REG_SZ"                    , "$00000002"
  7. macros "REG_BINARY"                , "$00000008"
  8. macros "REG_DWORD"                , "$00000010"
  9. macros "REG_MULTI_SZ"                , "$00000080"
  10.  
  11. ; Native success/failure codes 
  12. macros "S_OK"                    , "0"
  13. macros "E_FAIL"                    , "$80004005"
  14.  
  15. ; Registry interface specific success/failure codes
  16. macros "REGISTRYINTERFACE_S_CORRECTED"        , "$00041000"
  17. macros "REGISTRYINTERFACE_E_NOT_IMPLEMENTED"     , "$80041000"
  18. macros "REGISTRYINTERFACE_E_UNSUPPORTED_DEVICE"    , "$80041001"
  19. macros "REGISTRYINTERFACE_E_UNSUPPORTED_DRIVER"    , "$80041002"
  20. macros "REGISTRYINTERFACE_E_UNSUPPORTED_VALUE"    , "$80041003"
  21. macros "REGISTRYINTERFACE_E_UNSUPPORTED_OS"    , "$80041004"
  22.  
  23. ; OS platform identifiers
  24. macros "VER_PLATFORM_WIN32_WINDOWS"        , "1"
  25. macros "VER_PLATFORM_WIN32_NT"            , "2"
  26.  
  27. ; Registry interface modes
  28. macros "RIMODE_PROPERTY_GET"            , "0"
  29. macros "RIMODE_PROPERTY_SET"            , "1"
  30. macros "RIMODE_PROPERTY_ENUM"            , "2"
  31.  
  32. ; Registry interface macroses
  33. macros "ifget"                    , "ifeqdw %RIMODE%, RIMODE_PROPERTY_GET"
  34. macros "ifset"                    , "ifeqdw %RIMODE%, RIMODE_PROPERTY_SET"
  35. macros "ifenum"                    , "ifeqdw %RIMODE%, RIMODE_PROPERTY_ENUM"