ReactOS 0.4.16-dev-125-g798ea90
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 30 of file selfreg.c.

31{
32 HKEY key;
33 RegCreateKeyA(HKEY_CLASSES_ROOT, "selfreg_test", &key);
35 return S_OK;
36}
#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 38 of file selfreg.c.

39{
40 RegDeleteKeyA(HKEY_CLASSES_ROOT, "selfreg_test");
41 return S_OK;
42}
LONG WINAPI RegDeleteKeyA(_In_ HKEY hKey, _In_ LPCSTR lpSubKey)
Definition: reg.c:1224