#include <wine/config.h>
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <wine/debug.h>
#include "shell32_main.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (shell) |
| |
| HRESULT WINAPI | SHRegOpenKeyA (HKEY hKey, LPSTR lpSubKey, PHKEY phkResult) |
| |
| HRESULT WINAPI | SHRegOpenKeyW (HKEY hkey, LPCWSTR lpszSubKey, PHKEY retkey) |
| |
| HRESULT WINAPI | SHRegQueryValueA (HKEY hkey, LPSTR lpSubKey, LPSTR lpValue, LPDWORD lpcbValue) |
| |
| LONG WINAPI | SHRegQueryValueExA (HKEY hkey, LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData) |
| |
| HRESULT WINAPI | SHRegQueryValueW (HKEY hkey, LPWSTR lpszSubKey, LPWSTR lpszData, LPDWORD lpcbData) |
| |
| LONG WINAPI | SHRegQueryValueExW (HKEY hkey, LPCWSTR pszValue, LPDWORD pdwReserved, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData) |
| |
| HRESULT WINAPI | SHRegDeleteKeyW (HKEY hkey, LPCWSTR pszSubKey) |
| |
| HRESULT WINAPI | SHRegCloseKey (HKEY hkey) |
| |
| HRESULT WINAPI | SHCreateSessionKey (REGSAM samDesired, PHKEY phKey) |
| |
◆ _INC_WINDOWS
◆ WIN32_NO_STATUS
◆ SHCreateSessionKey()
Definition at line 147 of file shellreg.c.
148{
150 static WCHAR wszSessionKey[256];
152
153 if (!wszSessionKey[0])
154 {
156
158 {
161
163 {
165 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\SessionInfo\\%08x%08x",
167 }
168 else
170
172 }
173 else
175 }
176
178 {
183 }
184
186}
_In_ PVOID _In_ ULONG _Out_ PVOID _In_ ULONG _Inout_ PULONG ReturnLength
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
BOOL WINAPI GetTokenInformation(HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, LPVOID TokenInformation, DWORD TokenInformationLength, PDWORD ReturnLength)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
#define GetCurrentProcess()
#define REG_OPTION_VOLATILE
DWORD WINAPI GetLastError(void)
static HRESULT HRESULT_FROM_WIN32(unsigned int x)
#define HKEY_LOCAL_MACHINE
Referenced by DoStartStartupItems(), and startup().
◆ SHRegCloseKey()
Definition at line 136 of file shellreg.c.
137{
140}
#define RegCloseKey(hKey)
◆ SHRegDeleteKeyW()
Definition at line 124 of file shellreg.c.
127{
129 return 0;
130}
_In_opt_ LPCSTR pszSubKey
◆ SHRegOpenKeyA()
Definition at line 42 of file shellreg.c.
46{
49}
LONG WINAPI RegOpenKeyA(HKEY hKey, LPCSTR lpSubKey, PHKEY phkResult)
◆ SHRegOpenKeyW()
Definition at line 55 of file shellreg.c.
59{
62}
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
◆ SHRegQueryValueA()
Definition at line 68 of file shellreg.c.
69{
70 TRACE(
"(%p %s %p %p)\n", hkey,
debugstr_a(lpSubKey), lpValue, lpcbValue);
72}
LSTATUS WINAPI RegQueryValueA(HKEY hkey, LPCSTR name, LPSTR data, LPLONG count)
◆ SHRegQueryValueExA()
Definition at line 78 of file shellreg.c.
85{
86 TRACE(
"%p %s %p %p %p %p\n", hkey, lpValueName,
lpReserved, lpType, lpData, lpcbData);
88}
DWORD WINAPI SHQueryValueExA(HKEY hKey, LPCSTR lpszValue, LPDWORD lpReserved, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
_In_ DWORD _In_ int _In_ int _In_opt_ LPNLSVERSIONINFO _In_opt_ LPVOID lpReserved
◆ SHRegQueryValueExW()
Definition at line 108 of file shellreg.c.
115{
116 TRACE(
"%p %s %p %p %p %p\n",
119}
DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue, LPDWORD lpReserved, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
_In_ LPWSTR _In_ DWORD _In_ LPCVOID pvData
_In_opt_ LPCSTR _In_opt_ LPCSTR _In_ SRRF _Out_opt_ LPDWORD pdwType
_In_ _Out_writes_opt_ pcchValueName _Inout_opt_ LPDWORD _Out_opt_ _Out_writes_bytes_to_opt_ pcbData _Inout_opt_ LPDWORD pcbData
_In_opt_ LPCSTR _In_opt_ LPCSTR pszValue
Referenced by SHELL_TryAppPathW().
◆ SHRegQueryValueW()
Definition at line 94 of file shellreg.c.
99{
100 WARN(
"%p %s %p %p semi-stub\n",
101 hkey,
debugstr_w(lpszSubKey), lpszData, lpcbData);
103}
LSTATUS WINAPI RegQueryValueW(HKEY hkey, LPCWSTR name, LPWSTR data, LPLONG count)
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
shell |
| ) |
|