⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hxclreg.cpp

📁 linux下的一款播放器
💻 CPP
📖 第 1 页 / 共 2 页
字号:
    return m_pPropDB->GetStr(hash_key, val);}/************************************************************************ *  Method: *      IHXRegistry::SetStrByXYZ *  Purpose: *      Modify a Property's STRING value in the registry given the *  Property's name "pcName" or its id "id". If the value  *  was set, it will return HXR_OK, otherwise it returns HXR_FAIL. */STDMETHODIMPHXClientRegistry::SetStrByName(const char* prop_name, IHXBuffer* val){    return m_pPropDB->SetStr(prop_name, val);}/************************************************************************ *  Method: *      IHXRegistry::SetStrByXYZ *  Purpose: *      Modify a Property's STRING value in the registry given the *  Property's name "pcName" or its id "id". If the value  *  was set, it will return HXR_OK, otherwise it returns HXR_FAIL. */STDMETHODIMPHXClientRegistry::SetStrById(const UINT32 hash_key, IHXBuffer* val){    return m_pPropDB->SetStr(hash_key, val);}/************************************************************************ *  Method: *      IHXRegistry::AddBuf *  Purpose: *      Add an BUFFER property with name in "pcName" and value in  *  "pValue" to the registry. */STDMETHODIMP_(UINT32)HXClientRegistry::AddBuf(const char* new_prop, IHXBuffer* p_buf){    // if the return value is ZERO then the operation failed    return m_pPropDB->AddBuf(new_prop, p_buf);}/************************************************************************ *  Method: *      IHXRegistry::GetBufByName *  Purpose: *      Retreive the BUFFER from the registry given its Property *  name "pcName" or its id "id". If the Property  *  is found, it will return HXR_OK, otherwise it returns HXR_FAIL. */STDMETHODIMPHXClientRegistry::GetBufByName(const char* prop_name, IHXBuffer*& pp_buf) const{    // if the return value is ZERO then the operation failed    return m_pPropDB->GetBuf(prop_name, &pp_buf);}/************************************************************************ *  Method: *      IHXRegistry::GetBufById *  Purpose: *      Retreive the BUFFER from the registry given its Property *  name "pcName" or its id "id". If the Property  *  is found, it will return HXR_OK, otherwise it returns HXR_FAIL. */STDMETHODIMPHXClientRegistry::GetBufById(const UINT32 hash_key, IHXBuffer*& pp_buf) const{    // if the return value is ZERO then the operation failed    return m_pPropDB->GetBuf(hash_key, &pp_buf);}/************************************************************************ *  Method: *      IHXRegistry::SetBufByXYZ *  Purpose: *      Modify a Property's BUFFER in the registry given the *  Property's name "pcName" or its id "id". If the value  *  was set, it will return HXR_OK, otherwise it returns HXR_FAIL. */STDMETHODIMPHXClientRegistry::SetBufByName(const char* prop_name, IHXBuffer* p_buf){    // if the return value is ZERO then the operation failed    return m_pPropDB->SetBuf(prop_name, p_buf);}/************************************************************************ *  Method: *      IHXRegistry::SetBufByXYZ *  Purpose: *      Modify a Property's BUFFER in the registry given the *  Property's name "pcName" or its id "id". If the value  *  was set, it will return HXR_OK, otherwise it returns HXR_FAIL. */STDMETHODIMPHXClientRegistry::SetBufById(const UINT32 hash_key, IHXBuffer* p_buf){    // if the return value is ZERO then the operation failed    return m_pPropDB->SetBuf(hash_key, p_buf);}/************************************************************************ *  Method: *      IHXRegistry::AddIntRef *  Purpose: *      Add an INTEGER REFERENCE property with name in "pcName" and  *  value in "iValue" to the registry. This property allows the user *  to modify its contents directly, without having to go through the *  registry. */STDMETHODIMP_(UINT32)HXClientRegistry::AddIntRef(const char* new_prop, INT32* val){    return m_pPropDB->AddIntRef(new_prop, val);}/************************************************************************ *  Method: *      IHXRegistry::DeleteByXYZ *  Purpose: *      Delete a Property from the registry using its name "pcName" *  or id "id". */STDMETHODIMP_(UINT32)HXClientRegistry::DeleteByName(const char* prop_name){    // if the return value is ZERO then the operation failed    return m_pPropDB->Del(prop_name);}/************************************************************************ *  Method: *      IHXRegistry::DeleteByXYZ *  Purpose: *      Delete a Property from the registry using its name "pcName" *  or id "id". */STDMETHODIMP_(UINT32)HXClientRegistry::DeleteById(const UINT32 hash_key){    // if the return value is ZERO then the operation failed    return m_pPropDB->Del(hash_key);}/************************************************************************ *  Method: *      IHXRegistry::GetType *  Purpose: *      Returns the datatype of the Property given its name "pcName" *  or its id "id". */STDMETHODIMP_(HXPropType)HXClientRegistry::GetTypeByName(const char* prop_name) const{    return m_pPropDB->GetType(prop_name);}/************************************************************************ *  Method: *      IHXRegistry::GetType *  Purpose: *      Returns the datatype of the Property given its name "pcName" *  or its id "id". */STDMETHODIMP_(HXPropType)HXClientRegistry::GetTypeById(const UINT32 hash_key) const{    return m_pPropDB->GetType(hash_key);}/************************************************************************ *  Method: *      IHXRegistry::FindParentIdByName *  Purpose: *      Returns the id value of the parent node of the Property *  whose name (prop_name) or id (id) has been specified. *  If it fails, a ZERO value is returned. */STDMETHODIMP_(UINT32)HXClientRegistry::FindParentIdByName(const char* prop_name) const{    return m_pPropDB->FindParentKey(prop_name);}/************************************************************************ *  Method: *      IHXRegistry::FindParentIdById *  Purpose: *      Returns the id value of the parent node of the Property *  whose name (prop_name) or id (id) has been specified. *  If it fails, a ZERO value is returned. */STDMETHODIMP_(UINT32)HXClientRegistry::FindParentIdById(const UINT32 hash_key) const{    return m_pPropDB->FindParentKey(hash_key);}/************************************************************************ *  Method: *      HXRegistry::GetPropName *  Purpose: *      Returns the Property name in the ppcName char buffer passed *  as a parameter, given the Property's id "ulId". */STDMETHODIMPHXClientRegistry::GetPropName(const UINT32 id, IHXBuffer*& prop_name) const{    return m_pPropDB->GetPropName(id, prop_name);}/************************************************************************ *  Method: *      HXRegistry::GetId *  Purpose: *      Returns the Property's id given the Property name. */STDMETHODIMP_(UINT32)HXClientRegistry::GetId(const char* prop_name) const{    return m_pPropDB->GetId(prop_name);}/************************************************************************ *  Method: *      IHXRegistry::GetPropListOfRoot *  Purpose: *      It returns back a list of Properties as an IHXValues (prop_name *  and its id pair) at the root level of the registry's hierarchy. */STDMETHODIMPHXClientRegistry::GetPropListOfRoot(IHXValues*& pValues) const{    return m_pPropDB->GetPropList(pValues);}/************************************************************************ *  Method: *      IHXRegistry::GetPropListByName *  Purpose: *      Returns a list of Properties immediately under the one with *  name "pcName" or id "id". */STDMETHODIMPHXClientRegistry::GetPropListByName(const char* prop_name,                                     IHXValues*& pValues) const{    return m_pPropDB->GetPropList(prop_name, pValues);}/************************************************************************ *  Method: *      IHXRegistry::GetPropListById *  Purpose: *      Returns a list of Properties immediately under the one with *  name "pcName" or id "id". */STDMETHODIMPHXClientRegistry::GetPropListById(const UINT32 hash_key,                                  IHXValues*& pValues) const{    return m_pPropDB->GetPropList(hash_key, pValues);}/************************************************************************ *  Method: *      IHXRegistry::GetNumPropsAtRoot *  Purpose: *      Returns the count of the number of Properties within the *  registry. If a property name of id is specified, then it *  returns the number of Properties under it. */STDMETHODIMP_(INT32)HXClientRegistry::GetNumPropsAtRoot() const{    return m_pPropDB->Count();}/************************************************************************ *  Method: *      IHXRegistry::GetNumPropsByName *  Purpose: *      Returns the count of the number of Properties within the *  registry. If a property name of id is specified, then it *  returns the number of Properties under it. */STDMETHODIMP_(INT32)HXClientRegistry::GetNumPropsByName(const char* prop_name) const{    return m_pPropDB->Count(prop_name);}/************************************************************************ *  Method: *      IHXRegistry::GetNumPropsById *  Purpose: *      Returns the count of the number of Properties within the *  registry. If a property name of id is specified, then it *  returns the number of Properties under it. */STDMETHODIMP_(INT32)HXClientRegistry::GetNumPropsById(const UINT32 hash_key) const{    return m_pPropDB->Count(hash_key);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -