MIDL

1 program Added 2026-02-28T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Microsoft Interface Definition Language, MIDL compiler language
Provenance: commit 58b671c7d4 · authored 2026-02-28T15:38:20+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

OMG IDL (0.50)WebIDL (0.49)CIL (0.38)CDDL (0.34)Ampersand (0.30)

LLM-contributed programs

COM Calculator Interface

Provenance: commit 58b671c7d4 · authored 2026-02-28T15:38:20+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.idl · added: 2026-02-28T12:00:00Z
// calculator.idl - Simple COM interface definition using MIDL

import "unknwn.idl";

[
    object,
    uuid(B4EBE741-1C40-4B26-B0D1-E84025024765),
    pointer_default(unique)
]
interface ICalculator : IUnknown
{
    HRESULT Add([in] long a, [in] long b, [out, retval] long* result);
    HRESULT Subtract([in] long a, [in] long b, [out, retval] long* result);
    HRESULT Multiply([in] long a, [in] long b, [out, retval] long* result);
    HRESULT Divide([in] long a, [in] long b, [out, retval] long* result);
};

[
    uuid(2A6E9E24-6A3A-4C19-89AD-0D0FAE7D5B5C),
    version(1.0)
]
library CalculatorLib
{
    importlib("stdole2.tlb");

    [
        uuid(C6C1A9DF-F24A-4AF1-A4DC-8E38F5E96F42)
    ]
    coclass Calculator
    {
        [default] interface ICalculator;
    };
};

Contribute — propose a file extension

Tell us where to find evidence about MIDL (mapped to pl/midl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/MIDL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Miden Mierda →