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
# ignore everything in current directory
/*
# !pattern now negates the "ignore everything" and keeps 'pattern'
# keep .gitignore
!.gitignore
# keep mydirectory, along with everything inside it
!mydirectory/
xxxxxxxxxx
# Ignore everything
*
# But not these files...
!.gitignore
!script.pl
!template.latex
# etc...
# ...even if they are in subdirectories
!*/
# if the files to be tracked are in subdirectories
!*/a/b/file1.txt
!*/a/b/c/*