HRESULT RegistryGet(WCHAR *pszKey, DWORD dwKeySize,
DWORD *pdwNeeded);
DOES NOT WORK ON WINDOWS95.
Retrieves the name of the registry key in HKEY_CURRENT_USER that will be used for controlling the instrumented version.
· Returns NOERROR if successful, or one of these error values:
E_INVALIDARG
E_OUTOFMEMORY
pszKey
[in/out] Address of a buffer that receives the name of the current key. If the buffer receives an empty string, then the instrumented audio source cannot be controlled by the registry.
dwKeySize
[in] Size, in bytes, of the buffer specified by pszKey. If the specified size is too small, the function returns an error and fills pdwNeeded with the number of bytes needed.
pdwNeeded
[out] Address of a variable that receives the number of bytes needed for the key string.
The key defaults to an empty string, "", indicating that it cannot be controlled externally by an application changing the registry. If the key string is set then the object will monitor the key (under HKEY_CURRENT_USER) for changes. The values that can be changed are:
· "State" - DWORD - Same value as state set/get.
"WaveFileRead" - STRING - String of the wave file to be read from.
"WaveFileWrite" - STRING - String of the wave file to write to.