Sample Code

windows driver samples/ Native Wifi IHV Service/ C++/ ihvsampleui/ IHVRegistryHelper.h/

//
// Copyright (C) Microsoft Corporation 2005
// IHV UI Extension sample
//

#pragma once

#define FAILHR(result) \
                if (result == FALSE) \
                {\
                    hr = S_FALSE;\
                    return hr;\
                }


#define MAX_LENGTH 256


class CRegHelper
{
 public:
   static HRESULT STDMETHODCALLTYPE RegisterServer();
   static HRESULT STDMETHODCALLTYPE UnregisterServer();

private:
   static BOOL SetKeyAndValue(
       const wchar_t *pszKey, 
       const wchar_t *pszSubkey, 
       const wchar_t *pszValue 
       );
   
   static BOOL DeleteKey(const wchar_t *pszSubkey);
   
   static BOOL SetRegValue(
       const wchar_t *pszKeyName, 
       const wchar_t *pszKeyword,
       const wchar_t *pszValue 
       );
};

Our Services

  • What our customers say about us?

© 2011-2025 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS