#MmiUtil_GetPrinterType


##函数引用
```
#include "MmiUtil.h"

```

##函数声明
```
/* --------------------------------------------------------------------------
* FUNCTION NAME: MmiUtil_GetPrinterType.
* DESCRIPTION:   获取打印机类型
* PARAMETERS:
* RETURN:
*   PrinterType -- 打印机类型（参考enumPrinterType）
*   SPROCKET_PRINTER;
    THERMAL_PRINTER;
* NOTES:
* ------------------------------------------------------------------------ */
int MmiUtil_GetPrinterType(void);

```
##函数返回
```
1.
```

##Sample
```
int demo( void )
{
    int ret;
    ret = MmiUtil_GetPrinterType();
    if( ret == SPROCKET_PRINTER )
        .....
}
```

##注意事项

```
1. 区别热敏、针打机型;
```

##延伸阅读
```
int MmiUtil_GetPrinterType(void)
{
    TermType = MmiUtil_GetTerminalType();
    switch (TermType)
    {
    case _VX520S:
    case _VX805:
        printer_type = SPROCKET_PRINTER;
        break;
    default:
        printer_type = THERMAL_PRINTER;
        break;
    }
    return printer_type;
}
```




