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.

52 lines
1.2 KiB

  1. #pragma once
  2. #ifndef _ACPIENAB_H
  3. #define _ACPIENAB_H
  4. /* ----------------------------------------------------------------------
  5. Copyright (c) 1998 Microsoft Corporation
  6. Module Name:
  7. acpienab.h
  8. Abstract:
  9. Header file for Windows NT DLL which enables ACPI on systems on which
  10. NT5 has been installed in legacy mode.
  11. Author:
  12. Susan Dey : 27 July 98
  13. Revision History:
  14. ---------------------------------------------------------------------- */
  15. // Copy char to wide or char... (Note: ToSize in wide characters)
  16. #if (defined(_UNICODE) || defined(UNICODE ))
  17. #define CHAR2TCHAR(From, To, ToSize) \
  18. MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, From, -1, To, ToSize)
  19. #else
  20. #define CHAR2TCHAR(From, To, ToSize) \
  21. strcpy(To, From)
  22. #endif // _UNICODE
  23. // Functions
  24. HRESULT ACPIEnable ();
  25. LONG RegDeleteKeyAndSubkeys(HKEY hKey, LPTSTR lpszSubKey, BOOL UseAdminAccess);
  26. int DisplayDialogBox(DWORD dwCaptionID, DWORD dwMessageID, UINT uiBoxType);
  27. BOOL InstallRegistryAndFilesUsingInf(LPCTSTR szInfFileName,
  28. LPCTSTR szInstallSection);
  29. BOOL RegDeleteDeviceKey(IN const GUID* guid);
  30. void DisplayGenericErrorAndUndoChanges();
  31. BOOL IsAdministrator(void);
  32. BOOL UsePICHal(IN BOOL* PIC);
  33. // Variables
  34. extern HINSTANCE g_hinst;
  35. #endif // _ACPIENAB_H