SDIO add device problem

hi sir

i am trying to develop an sd function for my device…

at start after creating device object i use to open interface(as i read
in microsoft document) and then try to attach my fdo to pdo bt that is not
happening…Is my way is right or for attaching to sd bus stack what steps i
should have to follow.

Thanks
Niraj Jha