---
UID: NF:chstring.CHString.GetData
title: CHString::GetData (chstring.h)
description: The GetData method to get the data from the CHString object.
old-location: wmi\chstring_getdata.htm
tech.root: WmiSdk
ms.assetid: eb463c0d-8cb3-40b8-9c81-ce98c859068a
ms.date: 12/05/2018
ms.keywords: CHString interface [Windows Management Instrumentation],GetData method, CHString.GetData, CHString::GetData, GetData, GetData method [Windows Management Instrumentation], GetData method [Windows Management Instrumentation],CHString interface, chstring/CHString::GetData, wmi.chstring_getdata
f1_keywords:
- chstring/CHString.GetData
dev_langs:
- c++
req.header: chstring.h
req.include-header: FwCommon.h
req.target-type: Windows
req.target-min-winverclnt: Windows Vista
req.target-min-winversvr: Windows Server 2008
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: FrameDyn.lib
req.dll: FrameDynOS.dll; FrameDyn.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- FrameDynOS.dll
- FrameDyn.dll
api_name:
- CHString.GetData
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# CHString::GetData


## -description


<p class="CCE_Message">[The <a href="https://docs.microsoft.com/windows/desktop/WmiSdk/chstring">CHString</a> class 
    is part of the WMI Provider Framework which is now considered in final state, and no further development, 
    enhancements, or updates will be available for non-security related issues affecting these libraries. The 
    <a href="https://docs.microsoft.com/previous-versions/windows/desktop/wmi_v2/windows-management-infrastructure">MI APIs</a> should be used for all new 
    development.]

The <b>GetData</b> method to get the data from the <a href="https://docs.microsoft.com/windows/desktop/WmiSdk/chstring">CHString</a> object.


## -parameters






## -returns



If the <b>GetData</b> method is successful, it returns a pointer to the data in the <a href="https://docs.microsoft.com/windows/desktop/WmiSdk/chstring">CHString</a> object in the form of a <b>CHStringData</b> structure.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/WmiSdk/chstring">CHString</a>
 

 

