ReactOS 0.4.15-dev-8145-ga541a46
selfreg.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
Include dependency graph for selfreg.c:

Go to the source code of this file.

Functions

HRESULT WINAPI DllRegisterServer (void)
 
HRESULT WINAPI DllUnregisterServer (void)
 

Function Documentation

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 26 of file selfreg.c.

27{
28 HKEY key;
29 RegCreateKeyA(HKEY_CLASSES_ROOT, "selfreg_test", &key);
31 return S_OK;
32}
#define RegCloseKey(hKey)
Definition: registry.h:49
LONG WINAPI RegCreateKeyA(HKEY hKey, LPCSTR lpSubKey, PHKEY phkResult)
Definition: reg.c:1179
#define S_OK
Definition: intsafe.h:52
Definition: copy.c:22
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 34 of file selfreg.c.

35{
36 RegDeleteKeyA(HKEY_CLASSES_ROOT, "selfreg_test");
37 return S_OK;
38}
LONG WINAPI RegDeleteKeyA(_In_ HKEY hKey, _In_ LPCSTR lpSubKey)
Definition: reg.c:1224