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.

46 lines
924 B

  1. //
  2. // stdafx.h
  3. //
  4. #define NOWINDOWSX
  5. #include <windows.h>
  6. #include <winerror.h>
  7. //
  8. // The definitions below where included to make win9x port build in the NT tree
  9. //
  10. typedef DWORD HKEY;
  11. typedef unsigned short WCHAR;
  12. typedef const WCHAR FAR *LPCWSTR;
  13. typedef int INT_PTR;
  14. typedef unsigned int UINT_PTR;
  15. #define TEXT(a) a
  16. typedef struct tagNMHDR
  17. {
  18. HWND hwndFrom;
  19. UINT_PTR idFrom;
  20. UINT code;
  21. } NMHDR;
  22. typedef NMHDR FAR * LPNMHDR;
  23. #define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
  24. #define IN
  25. //#define WINAPI _loadds _far _pascal
  26. extern "C" LONG WINAPI RegSetValueEx(HKEY, LPCSTR, DWORD, DWORD, LPBYTE, DWORD);
  27. extern "C" LONG WINAPI RegQueryValueEx(HKEY, LPCSTR, LONG FAR *, LONG FAR *,
  28. LPBYTE, LONG FAR *);
  29. extern "C" LONG WINAPI RegCloseKey(HKEY);
  30. #define REG_SZ ( 1 )