Will C++ and even MFC Work in this Environment?
-
I'm planning to develop a Winsock Layered Service Provider. Given that the provider DLL will end up being loaded into system processes as well as user ones, are there any restrictions on the uses of the C++ runtime and/or MFC inside these processes? Am I going to have to develop it in straight C? (I hope not.) When I say system processes, I mean user mode system processes. The LSP is not a kernel mode component.
The difficult we do right away... ...the impossible takes slightly longer.
-
I'm planning to develop a Winsock Layered Service Provider. Given that the provider DLL will end up being loaded into system processes as well as user ones, are there any restrictions on the uses of the C++ runtime and/or MFC inside these processes? Am I going to have to develop it in straight C? (I hope not.) When I say system processes, I mean user mode system processes. The LSP is not a kernel mode component.
The difficult we do right away... ...the impossible takes slightly longer.
Its a user mode process, system or app, then yes, any MFC code can be used. Oh, and you can write C++ in the kernel, it does after all just end up as assembler, same as C. The issue with MFC are the libraries it uses. These just arent kernel usable.
-
I'm planning to develop a Winsock Layered Service Provider. Given that the provider DLL will end up being loaded into system processes as well as user ones, are there any restrictions on the uses of the C++ runtime and/or MFC inside these processes? Am I going to have to develop it in straight C? (I hope not.) When I say system processes, I mean user mode system processes. The LSP is not a kernel mode component.
The difficult we do right away... ...the impossible takes slightly longer.
I personally wouldn't recommend using MFC for anything that doesn't involve a GUI. It's relatively large and really buys you minimal help for most things (although it does help a lot with GUI objects). As to building an LSP (note the "deprecated" part)... Layered Service Provider - Wikipedia[^] As to building this type of DLL using C++, sure, you probably just need to export some functions using the 'C' style exports so they could be loaded. It's common practice so you'll find examples everywhere.
-
I personally wouldn't recommend using MFC for anything that doesn't involve a GUI. It's relatively large and really buys you minimal help for most things (although it does help a lot with GUI objects). As to building an LSP (note the "deprecated" part)... Layered Service Provider - Wikipedia[^] As to building this type of DLL using C++, sure, you probably just need to export some functions using the 'C' style exports so they could be loaded. It's common practice so you'll find examples everywhere.
Albert Holguin wrote:
As to building an LSP (note the "deprecated" part)...
I know it's deprecated, but I don't have the resources or the time to learn how to write a kernel mode filter driver for the new Windows Filtering Platform. Plus I don't think it will be removed because LSPs are part of the Winsock spec.
The difficult we do right away... ...the impossible takes slightly longer.