Source code of Windows XP (NT5)
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.

86 lines
3.3 KiB

  1. #ifndef _UNICWRAP_H_
  2. #define _UNICWRAP_H_
  3. ///////////////////////////////////////////////////////////////////////////
  4. //
  5. // WNET
  6. //
  7. DWORD WNetOpenEnumWrapW(DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum);
  8. DWORD WNetEnumResourceWrapW(HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize);
  9. DWORD WNetGetUserWrapW(LPCWSTR lpName, LPWSTR lpUserName, LPDWORD lpnLength);
  10. #ifndef _NO_UNICWRAP_WRAPPERS_
  11. #define WNetOpenEnumW WNetOpenEnumWrapW // WNetOpenEnum
  12. #define WNetEnumResourceW WNetEnumResourceWrapW // WNetEnumResource
  13. #define WNetGetUserW WNetGetUserWrapW // WNetGetUser
  14. #endif // _NO_UNICWRAP_WRAPPERS_
  15. ///////////////////////////////////////////////////////////////////////////
  16. //
  17. // RAS
  18. //
  19. #include <ras.h>
  20. // ras.h doesn't define these, but they are exported on Millennium platform!!!
  21. EXTERN_C DWORD RnaGetDefaultAutodialConnection(LPSTR szBuffer, DWORD cchBuffer, LPDWORD lpdwOptions);
  22. EXTERN_C DWORD RnaSetDefaultAutodialConnection(LPSTR szEntry, DWORD dwOptions);
  23. DWORD RasEnumEntriesWrapW(LPCWSTR reserved, LPCWSTR pszPhoneBookPath, LPRASENTRYNAMEW pRasEntryNameW, LPDWORD pcb, LPDWORD pcEntries);
  24. DWORD RasSetEntryDialParamsWrapW(LPCWSTR pszPhonebook, LPRASDIALPARAMSW lpRasDialParamsW, BOOL fRemovePassword);
  25. DWORD RasGetEntryDialParamsWrapW(LPCWSTR pszPhonebook, LPRASDIALPARAMSW lpRasDialParamsW, LPBOOL pfRemovePassword);
  26. DWORD RnaGetDefaultAutodialConnectionWrap(LPWSTR szBuffer, DWORD cchBuffer, LPDWORD lpdwOptions);
  27. DWORD RnaSetDefaultAutodialConnectionWrap(LPWSTR szEntry, DWORD dwOptions);
  28. #ifndef _NO_UNICWRAP_WRAPPERS_
  29. #define RasEnumEntriesW RasEnumEntriesWrapW // RasEnumEntries
  30. #define RasSetEntryDialParamsW RasSetEntryDialParamsWrapW // RasSetEntryDialParams
  31. #define RasGetEntryDialParamsW RasGetEntryDialParamsWrapW // RasGetEntryDialParams
  32. #define RnaGetDefaultAutodialConnection RnaGetDefaultAutodialConnectionWrap
  33. #define RnaSetDefaultAutodialConnection RnaSetDefaultAutodialConnectionWrap
  34. #endif // _NO_UNICWRAP_WRAPPERS_
  35. ///////////////////////////////////////////////////////////////////////////
  36. //
  37. // Property Sheets
  38. //
  39. INT_PTR WINAPI PropertySheetWrapW(LPCPROPSHEETHEADERW ppshW);
  40. HPROPSHEETPAGE WINAPI CreatePropertySheetPageWrapW(LPCPROPSHEETPAGEW ppspW);
  41. #ifndef _NO_UNICWRAP_WRAPPERS_
  42. #define PropertySheetW PropertySheetWrapW
  43. #define CreatePropertySheetPageW CreatePropertySheetPageWrapW
  44. #endif // _NO_UNICWRAP_WRAPPERS_
  45. ///////////////////////////////////////////////////////////////////////////
  46. //
  47. // Printer APIs
  48. //
  49. BOOL EnumPrintersWrapW(DWORD dwFlags, LPWSTR pszName, DWORD dwLevel, BYTE* pPrinterEnum, DWORD cbPrinterEnum, DWORD* pcbNeeded, DWORD* pcPrinters);
  50. #ifndef _NO_UNICWRAP_WRAPPERS_
  51. #define EnumPrintersW EnumPrintersWrapW
  52. #endif // _NO_UNICWRAP_WRAPPERS_
  53. ///////////////////////////////////////////////////////////////////////////
  54. //
  55. // Miscelaneous wrappers
  56. //
  57. UINT WINAPI GlobalGetAtomNameWrapW(ATOM nAtom, LPWSTR lpBuffer, int nSize);
  58. BOOL WINAPI GetComputerNameWrapW(LPWSTR lpBuffer, LPDWORD pnSize);
  59. BOOL WINAPI SetComputerNameWrapW (LPCWSTR lpComputerName);
  60. UINT WINAPI GetDriveTypeWrapW(LPCWSTR lpRootPathName);
  61. #ifndef _NO_UNICWRAP_WRAPPERS_
  62. #define GlobalGetAtomNameW GlobalGetAtomNameWrapW
  63. #define GetComputerNameW GetComputerNameWrapW
  64. #define SetComputerNameW SetComputerNameWrapW
  65. #define GetDriveTypeW GetDriveTypeWrapW
  66. #endif // _NO_UNICWRAP_WRAPPERS_
  67. #endif _UNICWRAP_H_