Created
October 18, 2018 20:06
-
-
Save joastbg/ac233077fef8fa9b47e8c54922237330 to your computer and use it in GitHub Desktop.
MIDL - Microsoft Interface Definition Language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "compiling MIDL..." :: Make sure tools are in PATH (eg Developer Command Prompt for VS 2017) | |
midl myfilectl.idl /tlb myfilectl.tlb | |
echo "done." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "oaidl.idl","unknwn.idl"; | |
[ | |
uuid(a03d1422-b1ec-11d0-8c3a-00c04fc31d2f), | |
helpstring("IFace3 interface"), | |
pointer_default(unique), | |
dual, | |
oleautomation | |
] | |
interface IFace3 : IUnknown | |
{ | |
HRESULT MethodC([in] long Max, | |
[in, max_is(Max)] BSTR [ ], | |
[out] long * pSize, | |
[out, size_is( , *pSize)] BSTR ** ppBKFST); | |
}; //end IFace3 def |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library MyTypeLibraryFileLib | |
{ | |
[ | |
uuid(B3F6C9C4-26AE-451B-9788-75F6C648DBF4), | |
helpstring("LogManager Class") | |
] | |
coclass LogManager | |
{ | |
[default] interface ILogManager; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment