diff options
Diffstat (limited to 'private/oleutest/act/server/server.hxx')
-rw-r--r-- | private/oleutest/act/server/server.hxx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/private/oleutest/act/server/server.hxx b/private/oleutest/act/server/server.hxx new file mode 100644 index 000000000..1761ce041 --- /dev/null +++ b/private/oleutest/act/server/server.hxx @@ -0,0 +1,69 @@ +/* + * server.hxx + */ + +#ifndef _SERVER_ +#define _SERVER_ + +#include <stdio.h> +#include <stdlib.h> +#include <windows.h> +#include <rpc.h> +#include <ole2.h> +#include "..\acttest.h" +#include "..\dll\goober.h" + +typedef unsigned long ulong; +typedef unsigned char uchar; + +#define LOCAL 1 +#define REMOTE 2 +#define ATBITS 3 +#define INPROC 4 + +typedef enum _debugger_type { + same_debugger, + clear_debugger, + ntsd_debugger, + windbg_debugger + } DebuggerType; + +void PrintUsageAndExit(); + +BOOL SetPassword( + TCHAR * szCID, + TCHAR * szPw ); + +long InitializeRegistry( + DebuggerType eDebug ); + +long SetClsidRegKeyAndStringValue( + TCHAR * pwszClsid, + TCHAR * pwszKey, + TCHAR * pwszValue, + HKEY * phClsidKey, + HKEY * phNewKey ); + +long SetRegKeyAndStringValue( + HKEY hKey, + TCHAR * pwszKey, + TCHAR * pwszValue, + HKEY * phNewKey ); + +long SetAppIDRegKeyAndNamedValue( + TCHAR * pwszAppID, + TCHAR * pwszKey, + TCHAR * pwszValue, + HKEY * phClsidKey ); + +long SetNamedStringValue( + HKEY hKey, + TCHAR * pwszKey, + TCHAR * pwszValue ); + +extern BOOL fStartedAsService; +extern HANDLE hStopServiceEvent; +extern long ObjectCount; +void ShutDown(); + +#endif |