summaryrefslogtreecommitdiffstats
path: root/private/nw/svcdlls/nwwks/client/nwspl.h
blob: 2a67f1aa437797c04016e358581b62dd7128fce9 (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
70
71
72
73
74
75
76
/*++

Copyright (c) 1993  Microsoft Corporation

Module Name:

    nwspl.h

Abstract:

    Common header for print provider client-side code.

Author:

    Yi-Hsin Sung (yihsins)  15-May-1993

Environment:

    User Mode - Win32

Revision History:

--*/

#ifndef _NWSPL_INCLUDED_
#define _NWSPL_INCLUDED_

#include "nwdlg.h"

typedef struct _NWPORT {
    DWORD   cb;
    struct  _NWPORT *pNext;
    LPWSTR  pName;
} NWPORT, *PNWPORT;

extern LPWSTR   pszRegistryPath;
extern LPWSTR   pszRegistryPortNames;
extern WCHAR    szMachineName[];
extern PNWPORT  pNwFirstPort;
extern CRITICAL_SECTION NwSplSem;

BOOL IsLocalMachine(
    LPWSTR pszName
);

BOOL PortExists(
    LPWSTR  pszPortName,
    LPDWORD pError
);

BOOL PortKnown(
    LPWSTR  pszPortName
);

PNWPORT CreatePortEntry(
    LPWSTR pszPortName
);

BOOL DeletePortEntry(
    LPWSTR pszPortName
);
 
VOID DeleteAllPortEntries(
    VOID
);

DWORD CreateRegistryEntry(
    LPWSTR pszPortName
);

DWORD DeleteRegistryEntry(
    LPWSTR pszPortName
);


#endif // _NWSPL_INCLUDED_