HRESULT Initialize(GUID FAR * lpGuid);
Initializes the DirectSound object that was created by using the CoCreateInstance function.
·Returns DS_OK if successful, or one of the following error values otherwise:
lpGuid
Address of the globally unique identifier (GUID) specifying the sound driver for this DirectSound object to bind to, or NULL to select the primary sound driver.
This method is provided for compliance with the Component Object Model (COM) protocol. If the DirectSoundCreate function was used to create the DirectSound object, this method returns DSERR_ALREADYINITIALIZED. If IDirectSound::Initialize is not called when using CoCreateInstance to create the DirectSound object, any method that is called afterward returns DSERR_UNINITIALIZED.
For more information about using IDirectSound::Initialize with CoCreateInstance, see Creating a DirectSound Object by Using CoCreateInstance.