SetCooperativeLevel question

EK1

Active member
Joined
Aug 20, 2003
Messages
28
Is there a way to use SetCooperativeLevel with a window handle instead of using System.Windows.Forms.Control in .NET?
 
Not that I know of. Why would you want to use a handle? The only reason I can think of to NOT use a window handle is because youre trying to use another processs window handle?

-Ner
 
I created a window using APIs instead of Windows.Forms. I like your idea though. Is something like that possible?
 
Capturing on another processs handle? I dont think so, but I dont know that much about it.

Why in the world would you want to create your own window through the API? If you need to capture windows messages or whatnot, you could always override the WndProc in your form.

-Nerseus
 
Im trying to get DXSpy to work with the samples in the SDK. I thought I need to register the window but that still doesnt work. Any ideas on why DXSpy doesnt work?
 
According to the docs, DXSpy only supports DX7 and DX8. I havent tried it, but it sounds like it wont work with DX9. Since the doc was very vague about what it does, its hard to say how its intercepting calls. How does it say you "attach" it to a window? Does it intercept ALL calls to all windows using DirectX, or are you supposed to point it at a window like with the normal Spy tool?

-Ner
 
Well I didnt look at it in detail, but I dont see where youd need a window handle anywhere? it appears to intercept at the EXE level (?) somehow. You have to replace your d3d9.dll with the one in the package though...

Are you trying to implement code in your app to use D3DSpy? I saw two short samples but neither of them needed a window handle either, that I could see.

-Ner
 
Back
Top