DSEnumCallback

This function is an application-defined callback function that enumerates the DirectSound drivers. The system calls this function in response to the application's previous call to the DirectSoundEnumerate function.

BOOL CALLBACK DSEnumCallback( 
  LPGUID lpGuid, 
  LPCSTR lpcstrDescription, 
  LPCSTR lpcstrModule, 
  LPVOID lpContext 
);

Parameters

  • lpGuid
    Address of the GUID that identifies the DirectSound driver being enumerated. This value can be passed to the DirectSoundCreate function to create a DirectSound object for that driver.
  • lpcstrDescription
    Address of a null-terminated string that provides a textual description of the DirectSound device.
  • lpcstrModule
    Address of a null-terminated string that specifies the module name of the DirectSound driver corresponding to this device.
  • lpContext
    Address of application-defined data that is passed to each callback function.

Return Values

Returns TRUE to continue enumerating drivers, or FALSE to stop.

Remarks

The application can save the strings passed in the lpcstrDescription and lpcstrModule parameters by copying them to memory allocated from the heap. The memory used to pass the strings to this callback function is valid only while this callback function is running.

Requirements

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Dsound.h.
Link Library: Dsound.lib.

See Also

DirectSoundCreate | DirectSoundEnumerate

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.