[wdmaudiodev] Questions about "name Guid" in MSVAD "simple" example

  • From: "Paul Titchener" <pt@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Sat, 7 Jul 2012 15:41:40 -0700

I know enough about driver .inf files and driver source code just to be 
dangerous so far, I’m using the msvad “simple” example as my starting point and 
I’m trying to understand some things about it.

In the simple.h include file for the driver, there are the lines below:

// Name Guid
// {946A7B1A-EBBC-422a-A81F-F07C8D40D3B4}
#define STATIC_NAME_MSVAD_SIMPLE\
    0x946a7b1a, 0xebbc, 0x422a, 0xa8, 0x1f, 0xf0, 0x7c, 0x8d, 0x40, 0xd3, 0xb4
DEFINE_GUIDSTRUCT("946A7B1A-EBBC-422a-A81F-F07C8D40D3B4", NAME_MSVAD_SIMPLE);
#define NAME_MSVAD_SIMPLE DEFINE_GUIDNAMED(NAME_MSVAD_SIMPLE)

Then in the msvad.inf installation script, there are the associated lines:

[MSVAD_Simple.AddReg]
. . .
HKLM,%MediaCategories%\%Simple.NameGuid%,Name,,%Simple.Name%

and

[Strings]
. . .
MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

Simple.NameGuid="{946A7B1A-EBBC-422a-A81F-F07C8D40D3B4}"
Simple.Name="MSVAD (Simple)"

What are all these lines accomplishing and is this something I need to keep in 
a new driver derived from the “simple” example?

If I need to keep this, Is that GUID a standard fixed one that has some meaning 
as a “name guid” or am I supposed to replace it with a different unique one?

Thanks,

Paul

Other related posts: