home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / DIConfig / registry.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.0 KB  |  27 lines

  1. //-----------------------------------------------------------------------------
  2. // File: registry.h
  3. //
  4. // Desc: Contains COM register and unregister functions for the UI.
  5. //
  6. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8.  
  9. #ifndef __Registry_H__
  10. #define __Registry_H__
  11.  
  12. // This function will register a component in the Registry.
  13. // The component calls this function from its DllRegisterServer function.
  14. HRESULT RegisterServer(HMODULE hModule, 
  15.                        const CLSID& clsid, 
  16.                        LPCTSTR szFriendlyName,
  17.                        LPCTSTR szVerIndProgID,
  18.                        LPCTSTR szProgID) ;
  19.  
  20. // This function will unregister a component.  Components
  21. // call this function from their DllUnregisterServer function.
  22. HRESULT UnregisterServer(const CLSID& clsid,
  23.                          LPCTSTR szVerIndProgID,
  24.                          LPCTSTR szProgID) ;
  25.  
  26. #endif
  27.