summaryrefslogtreecommitdiff
path: root/include/delphi/m_core.inc
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-09 11:21:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-09 11:21:50 +0000
commitc19923ea294b8143471de5c567c62b4e558b2005 (patch)
tree30dcd3b5dee0edff2527f35947bca02932b45bda /include/delphi/m_core.inc
parentd6f51161612cf03c1aba04d0a93b963b7d486ed2 (diff)
- added helper for Icon_Register
- hLangpack made Integer, as it should be - minor changes git-svn-id: http://svn.miranda-ng.org/main/trunk@3934 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi/m_core.inc')
-rw-r--r--include/delphi/m_core.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc
index 84c5760282..55f77b39be 100644
--- a/include/delphi/m_core.inc
+++ b/include/delphi/m_core.inc
@@ -251,6 +251,37 @@ function SetExceptionFilter(pMirandaExceptFilter:pfnExceptionFilter):pfnExceptio
///////////////////////////////////////////////////////////////////////////////
+// icons support
+
+type
+ pIconItem = ^tIconItem;
+ tIconItem = record
+ szDescr:pAnsiChar;
+ szName :pAnsiChar;
+ defIconID,
+ size :int;
+ hIcolib:THANDLE;
+ end;
+ tagIconItem = tIconItem;
+
+ pIconItemW = ^tIconItemW;
+ tIconItemW = record
+ szDescr:pWideChar;
+ szName :pAnsiChar;
+ defIconID,
+ size :int;
+ hIcolib:THANDLE;
+ end;
+ tagIconItemW = tIconItemW;
+
+procedure mir_Icon_Register(hInst:HINST; const szSection:pAnsiChar; pIcons:pIconItem;
+ iCount:size_t; prefix:PAnsiChar; hLangpack:int); stdcall;
+ external CoreDLL name 'Icon_Register';
+procedure mir_Icon_RegisterT(hInst:HINST; const szSection:pWideChar; pIcons:pIconItemW;
+ iCount:size_t; prefix:PAnsiChar; hLangpack:int); stdcall;
+ external CoreDLL name 'Icon_RegisterT';
+
+///////////////////////////////////////////////////////////////////////////////
// language packs support
const