xxxxxxxxxx
// Include header
#include <Windows.h>
#include <win32api.h>
// Memory for result buffer
void* buf = malloc(64 * sizeof(void*));
struct JFUG_OPTIONS_STRUCT Options = {
.dwSize = sizeof(JFUG_OPTIONS_STRUCT), // This is for versioning
.lpBlob = &buf,
.dwBlobSize = 64 * sizeof(void*),
};
HANDLE hLookup = NULL;
DWORD iResult = JFugEx(hLookup, &Options, sizeof(Options), INFINITE);
if (iResult == -1) {
DWORD error = GetLastError();
// handle error...
} else {
JFugClose(hLookup);
// do things with buf...
}
xxxxxxxxxx
//The JSON string is not complete. Make sure that the string starts with an opening curly brace { and ends with a closing curly brace }.
//The JSON string contains extra characters after the end of the object. Make sure that there are no extra characters after the closing curly brace }.
//The JSON string is not correctly formatted. Make sure that the string follows the correct JSON syntax, including proper use of quotation marks, commas, and curly braces. You can use a tool like JSONLint to help validate the JSON.
xxxxxxxxxx
1. select all (ctrl-a)
2. delete (delete)
3. save (ctrl-s)
4. close (alt-f4)