comctl32: monthcal: GetMonthRange Tests.
[wine/dcerpc.git] / programs / regedit / regproc.h
blob9a39951434275fbbc0b5b14f71290c4bb313e65f
1 /*
2 * Copyright 1999 Sylvain St-Germain
3 * Copyright 2002 Andriy Palamarchuk
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 /******************************************************************************
21 * Defines and consts
23 #define KEY_MAX_LEN 1024
25 /* Return values */
26 #define SUCCESS 0
27 #define KEY_VALUE_ALREADY_SET 2
29 typedef void (*CommandAPI)(LPSTR lpsLine);
31 void doSetValue(LPSTR lpsLine);
32 void doDeleteValue(LPSTR lpsLine);
33 void doCreateKey(LPSTR lpsLine);
34 void doDeleteKey(LPSTR lpsLine);
35 void doRegisterDLL(LPSTR lpsLine);
36 void doUnregisterDLL(LPSTR lpsLine);
38 BOOL export_registry_key(CHAR *file_name, CHAR *reg_key_name);
39 BOOL import_registry_file(LPTSTR filename);
40 void delete_registry_key(CHAR *reg_key_name);
42 void setAppName(const CHAR *name);
43 const CHAR *getAppName(void);
45 void processRegLines(FILE *in, CommandAPI command);
48 * Generic prototypes
50 char* getToken(char** str, const char* delims);
51 void get_file_name(CHAR **command_line, CHAR *filename);
52 DWORD convertHexToDWord(char *str, BYTE *buf);
53 DWORD convertHexCSVToHex(char *str, BYTE *buf, ULONG bufLen);
54 LPSTR convertHexToHexCSV( BYTE *buf, ULONG len);
55 LPSTR convertHexToDWORDStr( BYTE *buf, ULONG len);
56 LPSTR getRegKeyName(LPSTR lpLine);
57 HKEY getRegClass(LPSTR lpLine);
58 DWORD getDataType(LPSTR *lpValue, DWORD* parse_type);
59 LPSTR getArg(LPSTR arg);
60 HRESULT openKey(LPSTR stdInput);
61 void closeKey(void);
64 * api setValue prototypes
66 void processSetValue(LPSTR cmdline);
67 HRESULT setValue(LPSTR val_name, LPSTR val_data);