///////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2003 // // Module Name: // ClRes.h // // Implementation File: // ClRes.cpp // // Description: // Main header file for the resource DLL for ClipBook Server (ClipBook Server). // // Author: // () Mmmm DD, 2003 // // Revision History: // // Notes: // ///////////////////////////////////////////////////////////////////////////// #pragma once ///////////////////////////////////////////////////////////////////////////// // Include Files ///////////////////////////////////////////////////////////////////////////// #define UNICODE 1 #define _UNICODE 1 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0502 #endif // // Put the include's in a push/pop block so that no pragmas carry over. // #pragma warning( push ) #include #include #include #include #include #include #pragma warning( pop ) ///////////////////////////////////////////////////////////////////////////// // ClipBook Server Definitions ///////////////////////////////////////////////////////////////////////////// // // This is the name of the cluster resource type. // #define RESTYPE_NAME L"ClipBook Server" // // This is the dll name. // #define RESTYPE_DLL_NAME L"ClipBook Server.dll" // // This is the name of the service this resource type controls. // #define CLIPBOOKSERVER_SVCNAME L"ClipSrv" BOOL WINAPI ClipBookServerDllMain( HINSTANCE hDllHandleIn , DWORD nReasonIn , LPVOID ReservedIn ); DWORD WINAPI ClipBookServerStartup( LPCWSTR pwszResourceTypeIn , DWORD nMinVersionSupportedIn , DWORD nMaxVersionSupportedIn , PSET_RESOURCE_STATUS_ROUTINE pfnSetResourceStatusIn , PLOG_EVENT_ROUTINE pfnLogEventIn , PCLRES_FUNCTION_TABLE * pFunctionTableOut ); ///////////////////////////////////////////////////////////////////////////// // General Definitions ///////////////////////////////////////////////////////////////////////////// #define RESOURCE_TYPE_IP_ADDRESS L"IP Address" #define RESOURCE_TYPE_NETWORK_NAME L"Network Name" #define DBG_PRINT printf ///////////////////////////////////////////////////////////////////////////// // Global Variables and Prototypes ///////////////////////////////////////////////////////////////////////////// // // Event Logging routine. // extern PLOG_EVENT_ROUTINE g_pfnLogEvent; // // Resource Status routine for pending Online and Offline calls. // extern PSET_RESOURCE_STATUS_ROUTINE g_pfnSetResourceStatus; // // Handle to Service Control Manager set by the first Open resource call. // extern SC_HANDLE g_schSCMHandle;