?? utils.h
字號:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Module Name:
utils.h
Abstract:
Common USB Client Driver utils
--*/
#if !defined( _UTILS_ )
#define _UTILS_
#include <windows.h>
#include "warning.h"
#ifdef __cplusplus
extern "C" {
#endif
//
// Registry Value Descriptor
//
typedef struct _REG_VALUE_DESCR {
LPWSTR Name; // Value Name
DWORD Type; // Value Type
DWORD Size; // Value Data Size
PBYTE Data; // Value Data
} REG_VALUE_DESCR, *PREG_VALUE_DESCR;
#define SET TRUE
#define GET FALSE
//
// GetSetKeyValues
// Get or Set the specified KeyName and its Values to the registry under HKLM
//
// KeyName: HKLM\KeyName
// ValDesc: pointer to a Reg Value Descriptor array. Note the last array entry must be NULL.
// bSet: TRUE to Set, else Get
// bOverwrite: TRUE to overwrite it the key already exists
//
BOOL
GetSetKeyValues(
LPCTSTR KeyName,
PREG_VALUE_DESCR ValDesc,
BOOL bSet,
BOOL bOverwrite
);
#ifdef __cplusplus
}
#endif
#endif // _UTILS_
//EOF
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -