Hi,
I have found a C++ SDK sample file under the directory, microsoft platform
sdk>Samples>NetDS>ActiveDirectory>PropSheetHost. I'm using MMCLIB downloaded
form sourceforge, a C# program that uses the C++ shimm libraries to build a
snapin for Active Directory.
My question is, I changed the SDK PropSheetHost so it outputs a dll
(dynamic) instead of generating a .exe application file, is this OK to do?
So far, it generates the dll no problem.
My other question is, Do I need to add more code to it to make it an
exported dll that I can use pinvok to call from the C# code snapin that I'll
be writing using the MMCLIB? Or do I use the interop, which I will need to
create a RCW I guess? In the main() of the PropSheetHost, it has CoInitilize
at the begining, and CoUnInitlize at the end, but it also generates a .exe
file and runs independently, that's got me confused.
Thanks.
--
Thanks.