Platform is WS 2008 RC2, VS 2010.
I have what I think should be a pretty straightforward marshalling situation, but it just isn't working as expected.
#pragma pack(push, 8)
unsigned long Type;
__declspec(dllexport) Handle __cdecl CreateStyleProvider(const wchar_t* provider);
__declspec(dllexport) Handle __cdecl CreateOutputGroup(long ordinal, Handle style);
The Handle struct is really just opaque data that gets passed around.