I'm sorry, but I really have no idea. I've never done any DirectX stuff nor messed with any of the platform SDK samples. I merely noticed in your original post that you were using a DirectX API call but didn't mention whether you had installed the DirectX SDK or not. Lack of the DirectX SDK would certainly cause errors like you describe.