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.

81 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. umrdpdr.h
  5. Abstract:
  6. User-Mode Component for RDP Device Management that Handles Printing Device-
  7. Specific tasks.
  8. This is a supporting module. The main module is umrdpdr.c.
  9. Author:
  10. TadB
  11. Revision History:
  12. --*/
  13. #ifndef _UMRDPDR_
  14. #define _UMRDPDR_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif // __cplusplus
  18. ///////////////////////////////////////////////////////////////
  19. //
  20. // Defines
  21. //
  22. // Invalid server-assigned device ID.
  23. #define UMRDPDR_INVALIDSERVERDEVICEID -1
  24. ///////////////////////////////////////////////////////////////
  25. //
  26. // Prototypes
  27. //
  28. // Initialize function for this module. This function spawns a background
  29. // thread that does most of the work.
  30. BOOL UMRDPDR_Initialize(
  31. IN HANDLE hTokenForLoggedOnUser
  32. );
  33. // Close down this module. Right now, we just need to shut down the
  34. // background thread.
  35. BOOL UMRDPDR_Shutdown();
  36. // Make sure a buffer is large enough.
  37. BOOL UMRDPDR_ResizeBuffer(
  38. IN OUT void **buffer,
  39. IN DWORD bytesRequired,
  40. IN OUT DWORD *bufferSize
  41. );
  42. // Send a message to the TS client corresponding to this session, via the
  43. // kernel mode component.
  44. BOOL UMRDPDR_SendMessageToClient(
  45. IN PVOID msg,
  46. IN DWORD msgSize
  47. );
  48. // Return the AutoInstallPrinters user settings flag.
  49. BOOL UMRDPDR_fAutoInstallPrinters();
  50. // Return the default printers user settings flag.
  51. BOOL UMRDPDR_fSetClientPrinterDefault();
  52. #ifdef __cplusplus
  53. }
  54. #endif // __cplusplus
  55. #endif // _UMRDPDR_