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.

60 lines
1.6 KiB

  1. //Copyright (c) Microsoft Corporation. All rights reserved.
  2. //This file contains the gloabal declarations for functions pointers to
  3. //many of userenv.lib functions and other dependent functions. These pointers
  4. //are intiated when the service starts up and the libraries are freed
  5. //when the service is shut down.
  6. #ifndef _LIBFUNCS_
  7. #define _LIBFUNCS_
  8. #include <CmnHdr.h>
  9. #include <TChar.h>
  10. #include <WinBase.h>
  11. #include <UserEnv.h>
  12. #include <DsGetDc.h>
  13. typedef
  14. DWORD
  15. WINAPI
  16. GETDCNAME ( LPCTSTR, LPCTSTR, GUID *, LPCTSTR, ULONG,
  17. PDOMAIN_CONTROLLER_INFO * );
  18. typedef
  19. BOOL
  20. WINAPI
  21. LOADUSERPROFILE ( HANDLE, LPPROFILEINFO );
  22. typedef
  23. BOOL
  24. WINAPI
  25. UNLOADUSERPROFILE ( HANDLE, HANDLE );
  26. typedef
  27. BOOL
  28. WINAPI
  29. CREATEENVIRONMENTBLOCK ( LPVOID *, HANDLE, BOOL );
  30. typedef
  31. BOOL
  32. WINAPI
  33. DESTROYENVIRONMENTBLOCK ( LPVOID );
  34. typedef
  35. BOOL
  36. WINAPI
  37. GETUSERPROFILEDIRECTORY ( HANDLE, LPTSTR, LPDWORD );
  38. typedef
  39. BOOL
  40. WINAPI
  41. GETDEFAULTUSERPROFILEDIRECTORY ( LPTSTR, LPDWORD );
  42. //Gloabal variables for library functions
  43. LOADUSERPROFILE *fnP_LoadUserProfile = NULL;
  44. UNLOADUSERPROFILE *fnP_UnloadUserProfile = NULL;
  45. GETDCNAME *fnP_DsGetDcName = NULL;
  46. CREATEENVIRONMENTBLOCK *fnP_CreateEnvironmentBlock = NULL;
  47. DESTROYENVIRONMENTBLOCK *fnP_DestroyEnvironmentBlock = NULL;
  48. GETUSERPROFILEDIRECTORY *fnP_GetUserProfileDirectory = NULL;
  49. GETDEFAULTUSERPROFILEDIRECTORY *fnP_GetDefaultUserProfileDirectory = NULL;
  50. #endif //_LIBFUNCS_