Click here to Skip to main content
15,892,746 members
Articles / Desktop Programming / Win32

Outlook add-in integrating Skype

Rate me:
Please Sign up or sign in to vote.
4.93/5 (32 votes)
28 May 2015CPOL20 min read 68.9K   2.4K   54  
Outlook add-in integration for Skype IM: Skype events, Outlook Skype ribbon, and more.
static
VOID
btnPCSpeaker_Visible(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    BOOL                *Value
) {
    XAddin* pAddin = (XAddin *)Element->Context;
    
    *Value = pAddin->SkypeInfo.ApiStatus == SKYPECONTROLAPI_ATTACH_SUCCESS;
    return;
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID
btnPCSpeaker_Label(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    LPWSTR              Value, 
    int                 cch
) {
    PszStringCopy(Value, cch, L"PC Speaker");
    return;
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID 
btnPCSpeaker_Screentip(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    LPWSTR              Value, 
    int                 cch
) {
    PszStringCopy(Value, cch, L"PC Speaker");
    return;
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID 
btnPCSpeaker_Supertip(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    LPWSTR              Value, 
    int                 cch
) {
    PszStringCopy(Value, cch, L"Switch PC Speaker On/Off");
    return;
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID 
btnPCSpeaker_ImageMso(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    LPWSTR              Value, 
    int                 cch
) {
    *Value = L'\0';
    return;
    UNREFERENCED_PARAMETER(cch);
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID 
btnPCSpeaker_Image(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    IDispatch           **Value
) {
    *Value = NULL;
    return;
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID 
btnPCSpeaker_Enabled(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    BOOL                *Value
) {
    *Value = TRUE;
    return;
    UNREFERENCED_PARAMETER(Control);
    UNREFERENCED_PARAMETER(Element);
}

static
VOID 
btnPCSpeaker_Pressed(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    BOOL                *Value
) {
    XAddin* pAddin = (XAddin *)Element->Context;

    *Value = pAddin->GetPCSpeaker(pAddin);
    return;
    UNREFERENCED_PARAMETER(Control);
}

static
VOID
btnPCSpeaker_Action(
    RibbonElement       *Element, 
    IDispatch           *Control
) {
    XAddin* pAddin = (XAddin *)Element->Context;

    pAddin->SetPCSpeaker(pAddin, !pAddin->GetPCSpeaker(pAddin));
    return;
    UNREFERENCED_PARAMETER(Control);
}

static
VOID
btnPCSpeaker_Action2(
    RibbonElement       *Element, 
    IDispatch           *Control, 
    BOOL                Pressed
) {
    XAddin* pAddin = (XAddin *)Element->Context;

    pAddin->SetPCSpeaker(pAddin, Pressed);
    return;
    UNREFERENCED_PARAMETER(Control);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader BitDefender
Romania Romania
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions