diff options
Diffstat (limited to 'Tooltip_Notify/src/Utils.cpp')
-rw-r--r-- | Tooltip_Notify/src/Utils.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Tooltip_Notify/src/Utils.cpp b/Tooltip_Notify/src/Utils.cpp deleted file mode 100644 index ce73dbc..0000000 --- a/Tooltip_Notify/src/Utils.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//
-// Utils.cpp
-//
-
-#include "stdafx.h"
-#include "Utils.h"
-
-BOOL IsNt50()
-{
- WORD wOsVersion = LOWORD(GetVersion());
- BYTE bMajorVer = LOBYTE(wOsVersion);
- BYTE bMinorVer = HIBYTE(wOsVersion);
-
- return (bMajorVer>=5 && bMinorVer>=0);
-}
-
-void TruncateWithDots(TCHAR* szString, int iNewLen)
-{
- assert(iNewLen >= 0);
-
- int iOrigLen = _tcslen(szString);
- if (iNewLen < iOrigLen)
- {
- TCHAR* p = szString+iNewLen;
- *p = _T('\0');
- for(int i=0; --p>=szString && i<3; i++)
- {
- *p = _T('.');
- }
- }
-}
-
|