summaryrefslogtreecommitdiffstats
path: root/private/oleutest/act/server/server.hxx
blob: 1761ce04190c1e346504c3f05467a0e44b89ec3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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