Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. nwspl.h
  5. Abstract:
  6. Common header for print provider client-side code.
  7. Author:
  8. Yi-Hsin Sung (yihsins) 15-May-1993
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _NWSPL_INCLUDED_
  14. #define _NWSPL_INCLUDED_
  15. #include "nwdlg.h"
  16. typedef struct _NWPORT {
  17. DWORD cb;
  18. struct _NWPORT *pNext;
  19. LPWSTR pName;
  20. } NWPORT, *PNWPORT;
  21. extern LPWSTR pszRegistryPath;
  22. extern LPWSTR pszRegistryPortNames;
  23. extern WCHAR szMachineName[];
  24. extern PNWPORT pNwFirstPort;
  25. extern CRITICAL_SECTION NwSplSem;
  26. BOOL IsLocalMachine(
  27. LPWSTR pszName
  28. );
  29. BOOL PortExists(
  30. LPWSTR pszPortName,
  31. LPDWORD pError
  32. );
  33. BOOL PortKnown(
  34. LPWSTR pszPortName
  35. );
  36. PNWPORT CreatePortEntry(
  37. LPWSTR pszPortName
  38. );
  39. BOOL DeletePortEntry(
  40. LPWSTR pszPortName
  41. );
  42. VOID DeleteAllPortEntries(
  43. VOID
  44. );
  45. DWORD CreateRegistryEntry(
  46. LPWSTR pszPortName
  47. );
  48. DWORD DeleteRegistryEntry(
  49. LPWSTR pszPortName
  50. );
  51. #endif // _NWSPL_INCLUDED_