From cb2efce1a4fe9c89c5fef63b3aca63f3e63983fc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Aug 2019 13:41:45 +0300 Subject: obsolete services removed from core & replaced with functions --- include/m_core.h | 6 +++++- include/m_system.h | 55 +++++------------------------------------------------- 2 files changed, 10 insertions(+), 51 deletions(-) (limited to 'include') diff --git a/include/m_core.h b/include/m_core.h index 086b78cbb7..eafe6a4083 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -533,7 +533,11 @@ MIR_CORE_DLL(BOOL) IsWorkstationLocked(); MIR_CORE_DLL(BOOL) IsScreenSaverRunning(); MIR_CORE_DLL(BOOL) IsTerminalDisconnected(); -MIR_CORE_DLL(BOOL) GetOSDisplayString(wchar_t *buf, size_t bufSize); +// returns OS version in version of Windows NT xx.xx +MIR_CORE_DLL(BOOL) OS_GetShortString(char *buf, size_t bufSize); + +// returns full OS version +MIR_CORE_DLL(BOOL) OS_GetDisplayString(char *buf, size_t bufSize); /////////////////////////////////////////////////////////////////////////////// diff --git a/include/m_system.h b/include/m_system.h index 761daf613a..26f964a9f6 100644 --- a/include/m_system.h +++ b/include/m_system.h @@ -116,58 +116,13 @@ EXTERN_C MIR_APP_DLL(bool) Miranda_OkToExit(void); // Waits for a permission to exit and destroys contact list EXTERN_C MIR_APP_DLL(void) Miranda_Close(void); -/* - wParam : 0 - lParam : (address) void (__cdecl *callback) (void) - Affect : Setup a function pointer to be called after main loop iterations, it allows for - idle processing, See notes - Returns: 1 on success, 0 on failure - - Notes : This service will only allow one function to be registered, if one is registered, 0 will be returned - Remember that this uses __cdecl. - Version: Added during 0.3.4+ - -*/ -#define MS_SYSTEM_SETIDLECALLBACK "Miranda/SetIdleCallback" - -/* - wParam : 0 - lParam : &tick - Affect : return the last window tick where a monitored event was seen, currently WM_CHAR/WM_MOUSEMOVE - Returns: Always returns 0 - Version: Added during 0.3.4+ (2004/09/12) -*/ -#define MS_SYSTEM_GETIDLE "Miranda/GetIdle" - -/* - wParam: cchMax (max length of buffer) - lParam: pointer to buffer to fill - Affect: Returns the build timestamp of the core, as a string of YYYYMMDDhhmmss, this service might - not exist and therefore the build is before 2004-09-30 - Returns: zero on success, non zero on failure - Version: 0.3.4a+ (2004/09/30) - DEFUNCT: This service was removed on 0.3.4.3+ (2004/11/19) use APILEVEL -*/ -#define MS_SYSTEM_GETBUILDSTRING "Miranda/GetBuildString" - -/* Missing service catcher -Is being called when one calls the non-existent service. -All parameters are stored in the special structure - -The event handler takes 0 as wParam and TMissingServiceParams* as lParam. - -0.4.3+ addition (2006/03/27) -*/ +// Sets up a function pointer to be called after main loop iterations, suitable for idle processing +EXTERN_C MIR_APP_DLL(void) Miranda_SetIdleCallback(void(__cdecl *pfnCallback)(void)); -typedef struct -{ - const char* name; - WPARAM wParam; - LPARAM lParam; -} - MISSING_SERVICE_PARAMS; +// returns the last window tick where a monitored event was seen, currently WM_CHAR/WM_MOUSEMOVE +EXTERN_C MIR_APP_DLL(DWORD) Miranda_GetIdle(void); -#define ME_SYSTEM_MISSINGSERVICE "System/MissingService" +///////////////////////////////////////////////////////////////////////////////////////// #if defined(__cplusplus) #include -- cgit v1.2.3