Skip to content

Instantly share code, notes, and snippets.

View billziss-gh's full-sized avatar
💭
I may be slow to respond.

Bill Zissimopoulos billziss-gh

💭
I may be slow to respond.
View GitHub Profile
diff --git a/inc/winfsp/launch.h b/inc/winfsp/launch.h
index 112ee251..4a029316 100644
--- a/inc/winfsp/launch.h
+++ b/inc/winfsp/launch.h
@@ -292,7 +292,8 @@ typedef struct _FSP_LAUNCH_REG_RECORD
ULONG Credentials;
ULONG AuthPackageId;
ULONG Recovery;
- ULONG Reserved1[4];
+ ULONG VolumePrefixComponentCount;
Vista+:
Session 0: Services only
\Sessions\0\DosDevices\{LUID}
Global -> \GLOBAL??
\Sessions\0\BaseNamedObjects -> \BaseNamedObjects
Global -> \BaseNamedObjects
Local -> \BaseNamedObjects
Session -> \Sessions\BNOLINKS
#pragma push_macro("STATUS_SUCCESS")
#undef STATUS_SUCCESS
static const NTSTATUS STATUS_SUCCESS = (NTSTATUS)0x00000000;
#pragma pop_macro("STATUS_SUCCESS")
#pragma push_macro("STATUS_WAIT_1")
#undef STATUS_WAIT_1
static const NTSTATUS STATUS_WAIT_1 = (NTSTATUS)0x00000001;
#pragma pop_macro("STATUS_WAIT_1")
#pragma push_macro("STATUS_WAIT_2")
#undef STATUS_WAIT_2
This gist contains random WSL Notes.
@billziss-gh
billziss-gh / cygwin-ls
Created March 19, 2017 03:46
Cygwin ls and hidden files
#!/bin/python
import os, sys
preload = 1
for arg in sys.argv[1:]:
if "--all" == arg or "--almost-all" == arg:
preload = 0
elif arg.startswith("-") and ("a" in arg or "A" in arg):
preload = 0
@billziss-gh
billziss-gh / fspload.c
Last active February 2, 2017 19:28
How to delay load the WinFsp DLL
/*
* Use the following function to delay load the WinFsp DLL
* directly from the WinFsp installation directory.
*
* You will also need to update your project settings:
* - Linker > Input > Delay Loaded DLL's: winfsp-$(PlatformTarget).dll
*
* Written by Bill Zissimopoulos, 2017. Released to the public domain.
*/