Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- #define KEY "SOFTWARE\\ratz\\RRDC\\"
- int main(){
- long ret;
- unsigned char *res;
- DWORD size;
- HKEY hkey;
- ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, KEY, 0, KEY_QUERY_VALUE, &hkey);
- (ret = 0) ? (ret = RegGetValue(hkey, KEY, "Pfad", 0x00000002, NULL, res, size)) : printf("%ld\n", ret);
- (ret = 0) ? ((unsigned char *)malloc(size) && RegGetValue(hkey, KEY, "Pfad", 0x00000002, NULL, res, size)) : printf("%ld\n", ret);
- printf("%s\n", res);
- }
- C:\Users\Administrator\Desktop\RamDiskCleaner>C:\MinGW\bin\mingw32-gcc.exe -o en
- vision3.exe envision3.c
- C:\Users\ADMINI~1\AppData\Local\Temp\ccEubxmE.o:envision3.c:(.text+0x89): undefi
- ned reference to `RegGetValue'
- C:\Users\ADMINI~1\AppData\Local\Temp\ccEubxmE.o:envision3.c:(.text+0xf6): undefi
- ned reference to `RegGetValue'
- collect2: ld returned 1 exit status
Add Comment
Please, Sign In to add comment