forked from inbei/sihook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
46 lines (34 loc) · 1.05 KB
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/************************************************************************
* Copyright(C),2010-2014, Shenzhen TYDIC Information Technology Co.,Ltd
* FileName: Utils.h *
* Author:
* Version: 1.0
* CreateDate: 2014-11-25 17:52:20
* Description:
* Finished:
* History:
* 1.Date:
* Author:
* Modification:
***********************************************************************/
#ifndef __UTILS__H__
#define __UTILS__H__
#include <windows.h>
//输出调试信息
void WINAPI OutputDebugStringEx(LPCTSTR lpcFormatText, ...);
//获取短标题
char* GetSiSwTitle(const char* lpc,char* title, char* path);
//获取文件类型
//0 无类型默认
//1 *.c *.cpp *.cxx *.cs
//2 *.h *.hpp *.hxx *.inc
//3 *.txt *.text *.doc
//4 *.php *.php3 *.htm *.js
//5 *.pas *.vb *.pb *.vbs
int GetColorIndex(const char* filename);
char *Trim( char *String );
char* GetRealTime(char* vo_pBuffer);
void DrawGradientV(HDC hdc, COLORREF co1, COLORREF co2, RECT DrawRect );
void DrawGradientH(HDC hdc, COLORREF co1, COLORREF co2, RECT DrawRect );
//int GetExePathFromHWND(HWND hwnd, TCHAR* ExePath);
#endif