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.

52 lines
1.2 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: regd.h
  7. //
  8. // Contents: Helper functions registering and unregistering a component.
  9. //
  10. // History: July-97 xtan created
  11. //
  12. //---------------------------------------------------------------------------
  13. #ifndef __Regd_H__
  14. #define __Regd_H__
  15. // This function will register a component in the Registry.
  16. // Size of a CLSID as a string
  17. #define CLSID_STRING_SIZE 39
  18. HRESULT
  19. RegisterDcomServer(
  20. IN BOOL fCreateAppIdInfo,
  21. IN const CLSID& clsidAppId, // AppId Class ID
  22. IN const CLSID& clsid,
  23. IN const WCHAR *szFriendlyName,
  24. IN const WCHAR *szVerIndProgID,
  25. IN const WCHAR *szProgID);
  26. // This function will unregister a component
  27. HRESULT
  28. UnregisterDcomServer(
  29. IN const CLSID& clsid,
  30. IN const WCHAR *szVerIndProgID,
  31. IN const WCHAR *szProgID);
  32. HRESULT
  33. RegisterDcomApp(
  34. IN const CLSID& clsid);
  35. VOID
  36. UnregisterDcomApp(VOID);
  37. HRESULT
  38. CLSIDtochar(
  39. IN const CLSID& clsid,
  40. OUT WCHAR *pwszOut,
  41. IN DWORD cwcOut);
  42. #endif