Macro com_rs::iid [] [src]

macro_rules! iid {
    ($(#[$iid_attr:meta])*
    $name:ident = $d1:expr, $d2:expr, $d3:expr, $($d4:expr),*) => { ... };
    ($(#[$iid_attr:meta])*
    pub $name:ident = $d1:expr, $d2:expr, $d3:expr, $($d4:expr),*) => { ... };
}

Helper macro for defining IID constants.

Usage

iid!(IID_IFOO = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

IIDs are private by default as they are only supposed to be exposed by the ComPtr::iid method. If you want to make them public, just add the pub keyword before the identifier.

iid!(pub IID_IBAR = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);