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.

141 lines
3.0 KiB

  1. // Contains APIs for Whistler/NT whose normal header files we can't load for whatever reason.
  2. // In some cases, this is because we already #define stuff for win9x that conflicts with the real header.
  3. // In other cases, XXXComputerNameExW for example, its because we have _WIN32_WINNT < 0x0500.
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef enum _COMPUTER_NAME_FORMAT {
  8. ComputerNameNetBIOS,
  9. ComputerNameDnsHostname,
  10. ComputerNameDnsDomain,
  11. ComputerNameDnsFullyQualified,
  12. ComputerNamePhysicalNetBIOS,
  13. ComputerNamePhysicalDnsHostname,
  14. ComputerNamePhysicalDnsDomain,
  15. ComputerNamePhysicalDnsFullyQualified,
  16. ComputerNameMax
  17. } COMPUTER_NAME_FORMAT ;
  18. typedef struct _SERVER_INFO_1005_NT {
  19. LMSTR sv1005_comment;
  20. } SERVER_INFO_1005_NT, *PSERVER_INFO_1005_NT, *LPSERVER_INFO_1005_NT;
  21. typedef struct _SERVER_INFO_101_NT {
  22. DWORD sv101_platform_id;
  23. LMSTR sv101_name;
  24. DWORD sv101_version_major;
  25. DWORD sv101_version_minor;
  26. DWORD sv101_type;
  27. LMSTR sv101_comment;
  28. } SERVER_INFO_101_NT, *PSERVER_INFO_101_NT, *LPSERVER_INFO_101_NT;
  29. BOOL
  30. WINAPI
  31. GetComputerNameExW_NT (
  32. IN COMPUTER_NAME_FORMAT NameType,
  33. OUT LPWSTR lpBuffer,
  34. IN OUT LPDWORD nSize
  35. );
  36. BOOL
  37. WINAPI
  38. SetComputerNameExW_NT (
  39. IN COMPUTER_NAME_FORMAT NameType,
  40. IN LPCWSTR lpBuffer
  41. );
  42. NET_API_STATUS NET_API_FUNCTION
  43. NetServerSetInfo_NT (
  44. IN LMSTR servername OPTIONAL,
  45. IN DWORD level,
  46. IN LPBYTE buf,
  47. OUT LPDWORD ParmError OPTIONAL
  48. );
  49. NET_API_STATUS NET_API_FUNCTION
  50. NetServerGetInfo_NT (
  51. LPWSTR servername,
  52. DWORD level,
  53. LPBYTE *bufptr
  54. );
  55. BOOL WINAPI LinkWindow_RegisterClass_NT();
  56. // Printer functions (winspl32.dll)
  57. BOOL
  58. WINAPI
  59. OpenPrinter_NT(
  60. IN LPWSTR pPrinterName,
  61. OUT LPHANDLE phPrinter,
  62. IN LPPRINTER_DEFAULTSW pDefault
  63. );
  64. BOOL
  65. WINAPI
  66. ClosePrinter_NT(
  67. IN HANDLE hPrinter
  68. );
  69. BOOL
  70. WINAPI
  71. SetPrinter_NT(
  72. IN HANDLE hPrinter,
  73. IN DWORD Level,
  74. IN LPBYTE pPrinter,
  75. IN DWORD Command
  76. );
  77. BOOL
  78. WINAPI
  79. GetPrinter_NT(
  80. IN HANDLE hPrinter,
  81. IN DWORD Level,
  82. OUT LPBYTE pPrinter,
  83. IN DWORD cbBuf,
  84. OUT LPDWORD pcbNeeded
  85. );
  86. // Winsock
  87. int WSAStartup_NT(
  88. WORD wVersionRequested,
  89. LPWSADATA lpWSAData
  90. );
  91. int WSACleanup_NT (void);
  92. INT WSALookupServiceBegin_NT(
  93. LPWSAQUERYSET lpqsRestrictions,
  94. DWORD dwControlFlags,
  95. LPHANDLE lphLookup
  96. );
  97. INT WSALookupServiceNext_NT(
  98. HANDLE hLookup,
  99. DWORD dwControlFlags,
  100. LPDWORD lpdwBufferLength,
  101. LPWSAQUERYSET lpqsResults
  102. );
  103. INT WSALookupServiceEnd_NT(
  104. HANDLE hLookup
  105. );
  106. int WSAGetLastError_NT (void);
  107. LPITEMIDLIST ILCreateFromPathW_NT(LPCWSTR pszPath);
  108. DWORD_PTR SHGetFileInfoW_NT(
  109. LPCWSTR pszPath,
  110. DWORD dwFileAttributes,
  111. SHFILEINFOW *psfi,
  112. UINT cbFileInfo,
  113. UINT uFlags
  114. );
  115. #ifdef __cplusplus
  116. } // extern "C"
  117. #endif