Пример #1
0
SC_ACTION_TYPE ComboBoxToServiceAction(
    _In_ HWND ComboBoxHandle
    )
{
    PPH_STRING string;

    string = PH_AUTO(PhGetComboBoxString(ComboBoxHandle, ComboBox_GetCurSel(ComboBoxHandle)));

    if (!string)
        return SC_ACTION_NONE;

    return EspStringToServiceAction(string->Buffer);
}
Пример #2
0
static SC_ACTION_TYPE ComboBoxToServiceAction(
    _In_ HWND ComboBoxHandle
    )
{
    SC_ACTION_TYPE actionType;
    PPH_STRING string;

    string = PhGetComboBoxString(ComboBoxHandle, ComboBox_GetCurSel(ComboBoxHandle));

    if (!string)
        return SC_ACTION_NONE;

    actionType = EspStringToServiceAction(string->Buffer);
    PhDereferenceObject(string);

    return actionType;
}