id
int64
0
877k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
66
repo_stars
int64
94
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
11 values
repo_extraction_date
stringclasses
197 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
1,543,036
registeredimage.cpp
mullvad_win-split-tunnel/src/containers/registeredimage.cpp
#include <ntifs.h> #include "registeredimage.h" #include "../util.h" namespace registeredimage { struct CONTEXT { LIST_ENTRY ListEntry; ST_PAGEABLE Pageable; }; namespace { // // FindEntry() // // Use at PASSIVE only (APC is OK unless in paging file IO path). // Presumably because character tables are stored in p...
5,080
C++
.cpp
256
17.859375
92
0.760965
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,037
logging.cpp
mullvad_win-split-tunnel/src/firewall/logging.cpp
#include "logging.h" #include "../util.h" #include "../trace.h" #include "logging.tmh" namespace firewall { void LogBindRedirect ( HANDLE ProcessId, const SOCKADDR_IN *Target, const IN_ADDR *Override ) { char targetString[32]; char overrideString[32]; RtlIpv4AddressToStringA(&Target->sin_addr, targetString); ...
5,882
C++
.cpp
291
18.051546
72
0.776356
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,038
filters.cpp
mullvad_win-split-tunnel/src/firewall/filters.cpp
#include "../util.h" #include "identifiers.h" #include "constants.h" #include "filters.h" #define SUCCEED_OR_RETURN(status) if(!NT_SUCCESS(status)){ return status; } namespace firewall { NTSTATUS RegisterFilterBindRedirectIpv4Tx ( HANDLE WfpSession ) { // // Create filter that references callout. // // Use `pro...
19,238
C++
.cpp
538
33.659851
107
0.778759
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,039
callouts.cpp
mullvad_win-split-tunnel/src/firewall/callouts.cpp
#include "wfp.h" #include "firewall.h" #include "context.h" #include "identifiers.h" #include "pending.h" #include "callouts.h" #include "logging.h" #include "classify.h" #include "../util.h" #include "../trace.h" #include "callouts.tmh" #define RETURN_IF_UNSUCCESSFUL(status) \ if (!NT_SUCCESS(status)) \ { \ retu...
34,417
C++
.cpp
1,272
24.370283
105
0.756232
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,040
appfilters.cpp
mullvad_win-split-tunnel/src/firewall/appfilters.cpp
#include "wfp.h" #include "identifiers.h" #include "constants.h" #include "../defs/types.h" #include "../util.h" #include "appfilters.h" #include "../trace.h" #include "appfilters.tmh" namespace firewall::appfilters { namespace { struct BLOCK_CONNECTIONS_ENTRY { LIST_ENTRY ListEntry; // // Device path using all...
24,759
C++
.cpp
942
23.739915
114
0.763271
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,041
mode.cpp
mullvad_win-split-tunnel/src/firewall/mode.cpp
#include "mode.h" namespace firewall { NTSTATUS DetermineSplittingMode ( const ST_IP_ADDRESSES *IpAddresses, SPLITTING_MODE *Mode ) { const auto internetV4 = ip::ValidInternetIpv4Address(IpAddresses); const auto internetV6 = ip::ValidInternetIpv6Address(IpAddresses); const auto tunnelV4 = ip::ValidTunnelIpv4Addr...
1,567
C++
.cpp
62
22.935484
67
0.72319
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,042
pending.cpp
mullvad_win-split-tunnel/src/firewall/pending.cpp
#include "pending.h" #include "classify.h" #include "../util.h" #include "../trace.h" #include "pending.tmh" namespace firewall::pending { struct PENDED_CLASSIFICATION { LIST_ENTRY ListEntry; // Process that's making the request. HANDLE ProcessId; // Timestamp when record was created. ULONGLONG Timestamp; /...
10,816
C++
.cpp
413
20.77724
98
0.674593
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,043
firewall.cpp
mullvad_win-split-tunnel/src/firewall/firewall.cpp
#include "wfp.h" #include "context.h" #include "identifiers.h" #include "appfilters.h" #include "filters.h" #include "callouts.h" #include "constants.h" #include "pending.h" #include "logging.h" #include "../util.h" #include "../eventing/builder.h" #include "firewall.h" #include "../trace.h" #include "firewall.tmh" n...
34,154
C++
.cpp
1,332
22.953453
120
0.765424
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,044
classify.cpp
mullvad_win-split-tunnel/src/firewall/classify.cpp
#include "classify.h" namespace firewall { void ClassificationReset ( FWPS_CLASSIFY_OUT0 *ClassifyOut ) { // // According to documentation, FwpsAcquireWritableLayerDataPointer0() will update the // `actionType` and `rights` fields with poorly chosen values: // // ``` // classifyOut->actionType = FWP_ACTION_BLO...
1,174
C++
.cpp
52
20.980769
86
0.778475
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,045
util.h
mullvad_win-split-tunnel/leaktest/util.h
#pragma once #include <vector> #include <string> #include <stdexcept> #include <filesystem> #include <optional> #include <ws2tcpip.h> #include <ws2ipdef.h> #include <windows.h> class ArgumentContext { public: ArgumentContext(const std::vector<std::wstring> &args) : m_args(args) , m_remaining(m_args.size()) { ...
2,386
C++
.h
104
20.875
89
0.734902
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,046
runtimesettings.h
mullvad_win-split-tunnel/leaktest/runtimesettings.h
#pragma once // Include this to get IN6_ADDR // There's some magical include order which is non-trivial to reproduce #include <libcommon/network/adapters.h> #include "settings.h" #include <string> #include <cstdint> #include <optional> #include <filesystem> class RuntimeSettings { RuntimeSettings(Settings settings...
1,210
C++
.h
40
28.2
79
0.778163
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,047
settings.h
mullvad_win-split-tunnel/leaktest/settings.h
#pragma once #include <filesystem> #include <string> #include <libcommon/string.h> using common::string::KeyValuePairs; class Settings { public: Settings(KeyValuePairs values) : m_values(std::move(values)) { } static Settings FromFile(const std::filesystem::path &filename); const std::wstring &get(const st...
377
C++
.h
17
20.235294
65
0.778409
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,048
sockutil.h
mullvad_win-split-tunnel/leaktest/sockutil.h
#pragma once #include <cstdint> #include <string> #include <vector> #include <chrono> #include <ws2tcpip.h> std::string FormatWsaError(int errorCode); SOCKET CreateBindSocket(const IN_ADDR &ip, uint16_t port = 0, bool tcp = true); SOCKET CreateBindSocket(const std::wstring &ip, uint16_t port = 0, bool tcp = true); ...
1,795
C++
.h
46
37.108696
94
0.782356
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,049
st3.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st3.h
#pragma once #include <vector> #include <string> bool TestCaseSt3(const std::vector<std::wstring> &arguments);
113
C++
.h
4
26.75
61
0.785047
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,050
st7.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st7.h
#pragma once #include <vector> #include <string> bool TestCaseSt7(const std::vector<std::wstring> &arguments); bool TestCaseSt7Child(const std::vector<std::wstring> &arguments);
180
C++
.h
5
34.6
66
0.791908
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,051
st4.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st4.h
#pragma once #include <vector> #include <string> bool TestCaseSt4(const std::vector<std::wstring> &arguments);
113
C++
.h
4
26.75
61
0.785047
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,052
st5.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st5.h
#pragma once #include <vector> #include <string> bool TestCaseSt5(const std::vector<std::wstring> &arguments); bool TestCaseSt5Child(const std::vector<std::wstring> &arguments);
180
C++
.h
5
34.6
66
0.791908
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,053
st1.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st1.h
#pragma once #include <vector> #include <string> bool TestCaseSt1(const std::vector<std::wstring> &arguments);
113
C++
.h
4
26.75
61
0.785047
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,054
st6.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st6.h
#pragma once #include <vector> #include <string> bool TestCaseSt6(const std::vector<std::wstring> &arguments); bool TestCaseSt6Server(const std::vector<std::wstring> &arguments); bool TestCaseSt6Client(const std::vector<std::wstring> &arguments);
249
C++
.h
6
40.166667
67
0.79668
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,055
st2.h
mullvad_win-split-tunnel/leaktest/split-tunnel/st2.h
#pragma once #include <vector> #include <string> bool TestCaseSt2(const std::vector<std::wstring> &arguments);
113
C++
.h
4
26.75
61
0.785047
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,056
gen1.h
mullvad_win-split-tunnel/leaktest/general/gen1.h
#pragma once #include <vector> #include <string> bool TestCaseGen1(const std::vector<std::wstring> &arguments);
114
C++
.h
4
27
62
0.787037
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,057
public.h
mullvad_win-split-tunnel/src/public.h
#pragma once #include "win64guard.h" #include "ipaddr.h" #include "defs/state.h" #include "defs/ioctl.h" #include "defs/config.h" #include "defs/process.h" #include "defs/queryprocess.h" #include "defs/events.h"
213
C++
.h
9
22.555556
30
0.763547
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,058
version.h
mullvad_win-split-tunnel/src/version.h
#pragma once #define DRIVER_VERSION_MAJOR 1 #define DRIVER_VERSION_MINOR 2 #define DRIVER_VERSION_PATCH 4 #define DRIVER_VERSION_BUILD 0
138
C++
.h
5
26.4
30
0.833333
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,059
validation.h
mullvad_win-split-tunnel/src/validation.h
#pragma once #include <wdm.h> // // ValidateUserBufferConfiguration() // // Validates configuration data sent by user mode. // bool ValidateUserBufferConfiguration ( void *Buffer, size_t BufferLength ); // // ValidateUserBufferProcesses() // // Validates process data sent by user mode. // bool ValidateUserBu...
381
C++
.h
24
14.083333
50
0.771186
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,060
trace.h
mullvad_win-split-tunnel/src/trace.h
#pragma once // // Define GUID and tracing flags. // #define WPP_CONTROL_GUIDS \ WPP_DEFINE_CONTROL_GUID( \ StTraceGuid, (33E4119D,8A89,4FEC,A90C,C003310B17E9), \ WPP_DEFINE_BIT(TRACE_GENERAL) ...
1,357
C++
.h
31
39.419355
79
0.520849
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,061
util.h
mullvad_win-split-tunnel/src/util.h
#pragma once #include <wdm.h> #include "defs/types.h" #define bswapw(s) (((s & 0xFF) << 8) | ((s >> 8) & 0xFF)) #define ntohs(s) bswapw(s) #define htons(s) bswapw(s) template<typename T> bool bool_cast(T t) { return t != 0; } namespace util { // // N.B. m has to be a power of two. // inline constexpr SIZE_T Roun...
1,999
C++
.h
127
14.346457
70
0.759179
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,062
containers.h
mullvad_win-split-tunnel/src/containers.h
#pragma once #include <wdm.h> #include <wdf.h> #include "containers/procregistry.h" #include "containers/registeredimage.h" // // The single instance of this struct lives in the device context. // But it has to be defined here so it can be shared with other components // in the system that should not be concerned wit...
658
C++
.h
25
25.08
74
0.777778
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,063
ioctl.h
mullvad_win-split-tunnel/src/ioctl.h
#pragma once #include <ntddk.h> #include <wdf.h> #include "containers/registeredimage.h" namespace ioctl { // // Initialize() // // Initialize subsystems and device context. // NTSTATUS Initialize ( WDFDEVICE Device ); // // SetConfigurationPrepare() // // Parse client buffer into registeredimage instance. // /...
1,247
C++
.h
84
12.72619
64
0.791123
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,064
devicecontext.h
mullvad_win-split-tunnel/src/devicecontext.h
#pragma once #include <wdf.h> #include "ipaddr.h" #include "containers.h" #include "defs/state.h" #include "firewall/firewall.h" #include "procmgmt/procmgmt.h" #include "eventing/eventing.h" #include "procbroker/procbroker.h" struct DRIVER_STATE_MGMT { WDFWAITLOCK Lock; ST_DRIVER_STATE State; }; typedef struct tag...
945
C++
.h
32
27.65625
82
0.817778
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,065
win64guard.h
mullvad_win-split-tunnel/src/win64guard.h
#pragma once #ifdef NTDDI_VERSION // kernel #ifndef _WIN64 #error Only 64-bit is supported #endif #else // user #ifdef _WIN64 #error Only 64-bit is supported #endif #endif
207
C++
.h
10
18
35
0.647959
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,066
ipaddr.h
mullvad_win-split-tunnel/src/ipaddr.h
#pragma once #include <inaddr.h> #include <in6addr.h> typedef struct tag_ST_IP_ADDRESSES { IN_ADDR TunnelIpv4; IN_ADDR InternetIpv4; IN6_ADDR TunnelIpv6; IN6_ADDR InternetIpv6; } ST_IP_ADDRESSES; namespace ip { bool ValidTunnelIpv4Address ( const ST_IP_ADDRESSES *IpAddresses ); bool ValidInternetIpv4Address ...
522
C++
.h
34
13.852941
35
0.82881
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,067
procmon.h
mullvad_win-split-tunnel/src/procmon/procmon.h
#pragma once #include <wdm.h> namespace procmon { typedef struct tag_PROCESS_EVENT_DETAILS { HANDLE ParentProcessId; // Device path using mixed case characters. UNICODE_STRING ImageName; } PROCESS_EVENT_DETAILS; typedef struct tag_PROCESS_EVENT { LIST_ENTRY ListEntry; HANDLE ProcessId; // // `Details` ...
807
C++
.h
42
17.47619
84
0.793883
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,068
context.h
mullvad_win-split-tunnel/src/procmon/context.h
#pragma once #include <wdm.h> #include <wdf.h> #include "procmon.h" namespace procmon { struct CONTEXT { // The thread that services queued process events. PETHREAD DispatchWorker; // Lock to coordinate work on the queue. WDFWAITLOCK QueueLock; // Queue of incoming process events. LIST_ENTRY EventQueue; //...
910
C++
.h
36
23.25
91
0.767092
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,069
callbacks.h
mullvad_win-split-tunnel/src/procmgmt/callbacks.h
#pragma once #include <wdf.h> namespace procmgmt { typedef void (NTAPI *ACQUIRE_STATE_LOCK_FN)(void *context); typedef void (NTAPI *RELEASE_STATE_LOCK_FN)(void *context); typedef bool (NTAPI *ENGAGED_STATE_ACTIVE_FN)(void *context); } // namespace procmgmt
261
C++
.h
8
31.125
61
0.771084
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,070
context.h
mullvad_win-split-tunnel/src/procmgmt/context.h
#pragma once #include "../procmon/procmon.h" #include "../procbroker/procbroker.h" #include "../containers.h" #include "../eventing/eventing.h" #include "../firewall/firewall.h" #include "callbacks.h" namespace procmgmt { struct CONTEXT { procmon::CONTEXT *ProcessMonitor; procbroker::CONTEXT *ProcessEventBroker; ...
650
C++
.h
23
26.217391
44
0.798701
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,071
procmgmt.h
mullvad_win-split-tunnel/src/procmgmt/procmgmt.h
#pragma once #include <ntddk.h> #include <wdf.h> #include "../procbroker/procbroker.h" #include "../containers.h" #include "../eventing/eventing.h" #include "../firewall/firewall.h" #include "callbacks.h" namespace procmgmt { struct CONTEXT; NTSTATUS Initialize ( CONTEXT **Context, procbroker::CONTEXT *ProcessEve...
880
C++
.h
42
19.428571
66
0.787004
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,072
builder.h
mullvad_win-split-tunnel/src/eventing/builder.h
#pragma once #include <wdm.h> #include "../defs/events.h" #include "../defs/types.h" #include "eventing.h" namespace eventing { RAW_EVENT* BuildStartSplittingEvent ( HANDLE ProcessId, ST_SPLITTING_STATUS_CHANGE_REASON Reason, LOWER_UNICODE_STRING *ImageName ); RAW_EVENT* BuildStopSplittingEvent ( HANDLE Process...
762
C++
.h
45
15.444444
42
0.823446
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,073
eventing.h
mullvad_win-split-tunnel/src/eventing/eventing.h
#pragma once #include <wdm.h> #include <wdf.h> namespace eventing { struct CONTEXT; NTSTATUS Initialize ( CONTEXT **Context, WDFDEVICE Device ); void TearDown ( CONTEXT **Context ); struct RAW_EVENT { LIST_ENTRY ListEntry; size_t BufferSize; void *Buffer; }; // // Emit() // // Takes ownership of passed e...
714
C++
.h
50
12.86
57
0.761103
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,074
context.h
mullvad_win-split-tunnel/src/eventing/context.h
#pragma once #include <wdm.h> #include <wdf.h> namespace eventing { struct CONTEXT { // Pended IOCTL requests for inverted call. WDFQUEUE RequestQueue; WDFSPINLOCK EventQueueLock; LIST_ENTRY EventQueue; SIZE_T NumEvents; }; } // namespace eventing
260
C++
.h
14
16.714286
44
0.799163
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,075
context.h
mullvad_win-split-tunnel/src/procbroker/context.h
#pragma once #include <wdf.h> #include "procbroker.h" namespace procbroker { struct SUBSCRIPTION { LIST_ENTRY ListEntry; ST_PB_CALLBACK Callback; void *ClientContext; }; struct CONTEXT { WDFWAITLOCK SubscriptionsLock; LIST_ENTRY Subscriptions; }; } // namespace procbroker
283
C++
.h
17
15.058824
31
0.816092
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,076
procbroker.h
mullvad_win-split-tunnel/src/procbroker/procbroker.h
#pragma once #include <wdm.h> // // Process event broker. // // Distributes events in the system to notify subsystems when // processes arrive and depart. // // Introduced to break the dependency between "procmgmt" and "firewall". // namespace procbroker { struct CONTEXT; NTSTATUS Initialize ( CONTEXT **Context )...
712
C++
.h
45
14.355556
85
0.792683
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,077
procregistry.h
mullvad_win-split-tunnel/src/containers/procregistry.h
#pragma once #include <ntddk.h> #include "../defs/types.h" namespace procregistry { struct PROCESS_REGISTRY_ENTRY_SETTINGS { // Whether traffic should be split. ST_PROCESS_SPLIT_STATUS Split; // Whether the process is associated with any firewall filters. bool HasFirewallState; }; struct PROCESS_REGISTRY_ENTRY...
2,514
C++
.h
137
16.854015
82
0.783163
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,078
registeredimage.h
mullvad_win-split-tunnel/src/containers/registeredimage.h
#pragma once #include <wdm.h> #include "../defs/types.h" namespace registeredimage { struct REGISTERED_IMAGE_ENTRY { LIST_ENTRY ListEntry; // Device path using all lower-case characters. LOWER_UNICODE_STRING ImageName; }; struct CONTEXT; NTSTATUS Initialize ( CONTEXT **Context, ST_PAGEABLE Pageable ); // //...
1,863
C++
.h
121
14.057851
90
0.766821
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,079
identifiers.h
mullvad_win-split-tunnel/src/firewall/identifiers.h
#pragma once #include <initguid.h> /////////////////////////////////////////////////////////////////////////////// // // Identifiers used with WFP. // /////////////////////////////////////////////////////////////////////////////// // {E2C114EE-F32A-4264-A6CB-3FA7996356D9} DEFINE_GUID(ST_FW_PROVIDER_KEY, 0xe2c114ee,...
6,192
C++
.h
111
54.189189
79
0.734414
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,080
classify.h
mullvad_win-split-tunnel/src/firewall/classify.h
#pragma once #include "wfp.h" namespace firewall { void ClassificationReset ( FWPS_CLASSIFY_OUT0 *ClassifyOut ); void ClassificationApplyHardPermit ( FWPS_CLASSIFY_OUT0 *ClassifyOut ); void ClassificationApplySoftPermit ( FWPS_CLASSIFY_OUT0 *ClassifyOut ); void ClassificationApplyHardBlock ( FWPS_CLASSIFY_OUT...
363
C++
.h
25
13.08
32
0.858006
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,081
wfp.h
mullvad_win-split-tunnel/src/firewall/wfp.h
#pragma once // // Magical include order with defines etc. // Infuriating. // #include <ntddk.h> #include <wdm.h> #include <initguid.h> #pragma warning(push) #pragma warning(disable:4201) #define NDIS630 #include <ndis.h> #include <fwpsk.h> #pragma warning(pop) #include <fwpmk.h> #include <mstcpip.h>
304
C++
.h
16
17.875
42
0.758741
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,082
mode.h
mullvad_win-split-tunnel/src/firewall/mode.h
#pragma once #include <wdm.h> #include <wdf.h> #include "../ipaddr.h" namespace firewall { enum class SPLITTING_MODE { // Placeholder MODE_0 = 0, // Exclude IPv4/IPv6 MODE_1, // Exclude IPv4 MODE_2, // Exclude IPv4, Permit non-tunnel IPv6 MODE_3, // Exclude IPv4, Block tunnel-IPv6 MODE_4, // Exclude ...
667
C++
.h
36
16.527778
45
0.740681
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,083
context.h
mullvad_win-split-tunnel/src/firewall/context.h
#pragma once #include <wdm.h> #include <wdf.h> #include "firewall.h" #include "mode.h" #include "pending.h" #include "../ipaddr.h" #include "../procbroker/procbroker.h" #include "../eventing/eventing.h" namespace firewall { struct IP_ADDRESSES_MGMT { WDFSPINLOCK Lock; ST_IP_ADDRESSES Addresses; SPLITTING_MODE Spl...
1,142
C++
.h
53
19.679245
56
0.803172
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,084
appfilters.h
mullvad_win-split-tunnel/src/firewall/appfilters.h
#pragma once #include <wdm.h> #include <inaddr.h> #include <in6addr.h> #include "../defs/types.h" // // This module is used to manage app-specific filters. // // App-specific filters apply only to apps being split and use the full app path // to qualify candidates. // namespace firewall::appfilters { NTSTATUS Initi...
1,887
C++
.h
96
18.34375
90
0.788526
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,085
filters.h
mullvad_win-split-tunnel/src/firewall/filters.h
#pragma once #include "wfp.h" #include "context.h" namespace firewall { // // RegisterFilterBindRedirectIpv4Tx() // // Register filter, with linked callout, that will pass all bind requests through the bind callout // for validation/redirection. // // Applicable binds are rewritten for apps being split. // // "Tx" (...
2,973
C++
.h
149
18.691275
98
0.826025
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,086
callouts.h
mullvad_win-split-tunnel/src/firewall/callouts.h
#pragma once #include <wdm.h> namespace firewall { NTSTATUS RegisterCalloutClassifyBindTx ( PDEVICE_OBJECT DeviceObject, HANDLE WfpSession ); NTSTATUS UnregisterCalloutClassifyBind ( ); NTSTATUS RegisterCalloutClassifyConnectTx ( PDEVICE_OBJECT DeviceObject, HANDLE WfpSession ); NTSTATUS UnregisterCalloutClas...
650
C++
.h
45
13.022222
32
0.893939
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,087
firewall.h
mullvad_win-split-tunnel/src/firewall/firewall.h
#pragma once #include <wdm.h> #include "../ipaddr.h" #include "../defs/types.h" #include "../procbroker/procbroker.h" #include "../eventing/eventing.h" namespace firewall { struct CONTEXT; /////////////////////////////////////////////////////////////////////////////// // // Callback definitions. // Client(s) of the...
1,794
C++
.h
100
16.47
79
0.660693
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,088
logging.h
mullvad_win-split-tunnel/src/firewall/logging.h
#pragma once #include "wfp.h" #include "mode.h" namespace firewall { void LogBindRedirect ( HANDLE ProcessId, const SOCKADDR_IN *Target, const IN_ADDR *Override ); void LogBindRedirect ( HANDLE ProcessId, const SOCKADDR_IN6 *Target, const IN6_ADDR *Override ); void LogConnectRedirectPass ( HANDLE ProcessId,...
1,698
C++
.h
103
14.834951
38
0.829855
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,089
constants.h
mullvad_win-split-tunnel/src/firewall/constants.h
#pragma once #include <wdm.h> namespace { static const UINT64 ST_MAX_FILTER_WEIGHT = MAXUINT64; static const UINT64 ST_HIGH_FILTER_WEIGHT = MAXUINT64 - 10; static const UINT16 DNS_SERVER_PORT = 53; } // anonymous namespace
228
C++
.h
8
26.875
59
0.786047
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,090
pending.h
mullvad_win-split-tunnel/src/firewall/pending.h
#pragma once #include "wfp.h" #include <wdf.h> #include "../procbroker/procbroker.h" // // This module is currently used for pending redirection classifications, // but could plausibly be extended to handle other types of classifications, // as and when the need arises. // namespace firewall::pending { struct CONTE...
812
C++
.h
43
16.581395
76
0.772368
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,091
queryprocess.h
mullvad_win-split-tunnel/src/defs/queryprocess.h
#pragma once // // Structures related to querying process information. // typedef struct tag_ST_QUERY_PROCESS { HANDLE ProcessId; } ST_QUERY_PROCESS; typedef struct tag_ST_QUERY_PROCESS_RESPONSE { HANDLE ProcessId; HANDLE ParentProcessId; BOOLEAN Split; // Byte length for non-null terminated wide char string....
409
C++
.h
19
19.842105
57
0.815104
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,092
state.h
mullvad_win-split-tunnel/src/defs/state.h
#pragma once // // All possible states in the driver. // enum ST_DRIVER_STATE { // Default state after being loaded. ST_DRIVER_STATE_NONE = 0, // DriverEntry has completed successfully. // Basically only driver and device objects are created at this point. ST_DRIVER_STATE_STARTED = 1, // All subsystems are in...
633
C++
.h
21
28.142857
71
0.753719
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,093
ioctl.h
mullvad_win-split-tunnel/src/defs/ioctl.h
#pragma once // // IOCTLs for controlling the driver. // #define ST_DEVICE_TYPE 0x8000 #define IOCTL_ST_INITIALIZE \ CTL_CODE(ST_DEVICE_TYPE, 1, METHOD_NEITHER, FILE_ANY_ACCESS) #define IOCTL_ST_DEQUEUE_EVENT \ CTL_CODE(ST_DEVICE_TYPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS) #define IOCTL_ST_REGISTER_PROCESSES \ C...
1,426
C++
.h
36
37.944444
63
0.762527
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,094
process.h
mullvad_win-split-tunnel/src/defs/process.h
#pragma once // // Structures related to initial process registration. // typedef struct tag_ST_PROCESS_DISCOVERY_ENTRY { HANDLE ProcessId; HANDLE ParentProcessId; // Offset into buffer region that follows all entries. // The image name uses the device path. SIZE_T ImageNameOffset; // Byte length for non-null...
641
C++
.h
23
26.130435
57
0.79902
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,095
types.h
mullvad_win-split-tunnel/src/defs/types.h
#pragma once // // types.h // // Miscellaneous types and defines used internally. // #define ST_POOL_TAG 'UTPS' enum class ST_PAGEABLE { YES = 0, NO }; // // Type-safety when passing around lower case device paths. // Same definition as UNICODE_STRING so they can be cast between. // typedef struct tag_LOWER_UNICO...
664
C++
.h
32
18.90625
65
0.7504
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,096
events.h
mullvad_win-split-tunnel/src/defs/events.h
#pragma once enum ST_EVENT_ID { ST_EVENT_ID_START_SPLITTING_PROCESS = 0, // ST_SPLITTING_EVENT ST_EVENT_ID_STOP_SPLITTING_PROCESS, // ST_SPLITTING_EVENT ST_EVENT_ID_ERROR_FLAG = 0x80000000, ST_EVENT_ID_ERROR_START_SPLITTING_PROCESS, // ST_SPLITTING_ERROR_EVENT ST_EVENT_ID_ERROR_STOP_SPLITTING_PROCESS, // ST_S...
1,462
C++
.h
51
26.764706
71
0.79038
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,097
config.h
mullvad_win-split-tunnel/src/defs/config.h
#pragma once // // Structures related to configuration. // typedef struct tag_ST_CONFIGURATION_ENTRY { // Offset into buffer region that follows all entries. // The image name uses the device path. SIZE_T ImageNameOffset; // Byte length for non-null terminated wide char string. USHORT ImageNameLength; } ST_CONF...
565
C++
.h
21
25.238095
57
0.794063
mullvad/win-split-tunnel
37
9
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,098
SubmenuManager.cpp
shriprem_FWDataViz/src/SubmenuManager.cpp
#include "SubmenuManager.h" #include "Dialogs/VisualizerPanel.h" #include "Resources/SamplesMenuDefs.h" extern FuncItem pluginMenuItems[MI_COUNT]; extern VisualizerPanel _vizPanel; void SubmenuManager::listSampleFiles() { HMENU hSubMenu = getPluginSubMenu(); if (hSubMenu == NULL) return; HMENU hMenuSingleRe...
3,599
C++
.cpp
77
41.012987
130
0.71723
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,099
VisualizerMain.cpp
shriprem_FWDataViz/src/VisualizerMain.cpp
//This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License //as published by the Free Software Foundation; either //version 2 of the License, or (at your option) any later version. // //This program is distributed in the hope that it will be useful, //b...
3,077
C++
.cpp
94
27.468085
138
0.695064
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,100
PluginDefinition.cpp
shriprem_FWDataViz/src/PluginDefinition.cpp
//This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License //as published by the Free Software Foundation; either //version 2 of the License, or (at your option) any later version. // //This program is distributed in the hope that it will be useful, //b...
6,446
C++
.cpp
174
33.5
119
0.733655
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,101
Utils.cpp
shriprem_FWDataViz/src/Utils.cpp
#include "Utils.h" extern HINSTANCE _gModule; extern FuncItem pluginMenuItems[MI_COUNT]; // ***************** PRIVATE ***************** enum fontStyle { FS_REGULAR, FS_BOLD, FS_ITALIC, FS_UNDERLINE }; bool changeFontStyle(HWND hDlg, int controlID, fontStyle style) { HWND hwndCtrl = GetDlgItem(hDlg, c...
10,644
C++
.cpp
294
31.972789
127
0.696237
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,102
ConfigIO.cpp
shriprem_FWDataViz/src/ConfigIO.cpp
#include "ConfigIO.h" void ConfigIO::init() { TCHAR sPluginDirectory[MAX_PATH]{}; nppMessage(NPPM_GETPLUGINHOMEPATH, MAX_PATH, (LPARAM)sPluginDirectory); PathAppend(sPluginDirectory, PLUGIN_FOLDER_NAME); nppMessage(NPPM_GETPLUGINSCONFIGDIR, MAX_PATH, (LPARAM)pluginConfigDir); // If no existing config...
20,410
C++
.cpp
461
39.809111
126
0.708721
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,103
AboutDialog.cpp
shriprem_FWDataViz/src/Dialogs/AboutDialog.cpp
#include "AboutDialog.h" void AboutDialog::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_ABOUT_DIALOG); } localize(); goToCenter(); SendMessage(_hParent, NPPM_DMMSHOW, 0, (LPARAM)_hSelf); } void AboutDialog::refreshDarkMode() { NPPD...
2,270
C++
.cpp
71
26.408451
98
0.655204
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,104
FieldTypeDialog.cpp
shriprem_FWDataViz/src/Dialogs/FieldTypeDialog.cpp
#include "FieldTypeDialog.h" void FieldTypeDialog::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_FIELD_TYPE_DEFINER_DIALOG); } initComponent(_hSelf); fieldDefConfigFile = Utils::WideToNarrow(_configIO.getConfigFile(_configIO.CONFIG_FIELD_T...
11,512
C++
.cpp
299
32.511706
120
0.683052
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,105
VisualizerPanel.cpp
shriprem_FWDataViz/src/Dialogs/VisualizerPanel.cpp
#include "VisualizerPanel.h" #include "ConfigureDialog.h" #include "ThemeDialog.h" #include "PreferencesDialog.h" #include "JumpToField.h" #include "DataExtractDialog.h" #include "FoldStructDialog.h" #include "AboutDialog.h" #include <WindowsX.h> extern HINSTANCE _gModule; extern SubmenuManager _submenu; extern FuncIt...
78,763
C++
.cpp
1,813
36.771098
145
0.670762
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,106
PreferencesDialog.cpp
shriprem_FWDataViz/src/Dialogs/PreferencesDialog.cpp
#include "PreferencesDialog.h" #include "VisualizerPanel.h" constexpr int PREF_TIP_LONG{ 30 }; extern VisualizerPanel _vizPanel; void PreferencesDialog::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_PREFERENCES_DIALOG); } initCheckbox(IDC_PR...
6,225
C++
.cpp
152
35.934211
120
0.723503
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,107
StyleDefComponent.cpp
shriprem_FWDataViz/src/Dialogs/StyleDefComponent.cpp
#include "StyleDefComponent.h" StyleDefComponent::~StyleDefComponent() { if (hbr != NULL) DeleteObject(hbr); } void StyleDefComponent::initComponent(HWND hDlg) { _hDialog = hDlg; SendDlgItemMessage(_hDialog, IDC_STYLE_DEF_BACK_EDIT, EM_LIMITTEXT, 6, NULL); SendDlgItemMessage(_hDialog, IDC_STYLE_DEF_FORE_...
5,751
C++
.cpp
131
39.198473
120
0.70584
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,108
ConfigureDialog.cpp
shriprem_FWDataViz/src/Dialogs/ConfigureDialog.cpp
#include "ConfigureDialog.h" #include "EximFileTypeDialog.h" #include "FieldTypeDialog.h" #pragma comment(lib, "comctl32.lib") extern HINSTANCE _gModule; extern ConfigureDialog _configDlg; EximFileTypeDialog _eximDlg; FieldTypeDialog _fieldTypeDlg; void ConfigureDialog::doDialog(HINSTANCE hInst) { if (!isCreated...
48,105
C++
.cpp
1,138
36.226714
132
0.673445
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,109
DataExtractDialog.cpp
shriprem_FWDataViz/src/Dialogs/DataExtractDialog.cpp
#include "DataExtractDialog.h" extern VisualizerPanel _vizPanel; extern DataExtractDialog _dataExtractDlg; LRESULT CALLBACK procKeyNavigation(HWND hwnd, UINT messageId, WPARAM wParam, LPARAM lParam, UINT_PTR, DWORD_PTR) { switch (messageId) { case WM_KEYDOWN: if (_dataExtractDlg.processKey(hwnd, wParam)) ...
34,832
C++
.cpp
855
34.45614
125
0.67037
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,110
ThemeDialog.cpp
shriprem_FWDataViz/src/Dialogs/ThemeDialog.cpp
#include "ThemeDialog.h" #include "EximFileTypeDialog.h" extern HINSTANCE _gModule; extern ThemeDialog _themeDlg; extern EximFileTypeDialog _eximDlg; void ThemeDialog::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_THEME_DEFINER_DIALOG); } ini...
32,175
C++
.cpp
815
33.781595
119
0.683938
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,111
FoldStructDialog.cpp
shriprem_FWDataViz/src/Dialogs/FoldStructDialog.cpp
#include "FoldStructDialog.h" #include "EximFileTypeDialog.h" #pragma comment(lib, "comctl32.lib") extern HINSTANCE _gModule; extern EximFileTypeDialog _eximDlg; void FoldStructDialog::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_FOLD_STRUCT_DEFI...
40,728
C++
.cpp
964
36.53112
127
0.691156
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,112
EximFileTypeDialog.cpp
shriprem_FWDataViz/src/Dialogs/EximFileTypeDialog.cpp
#include "EximFileTypeDialog.h" void EximFileTypeDialog::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_FILE_TYPE_EXIM_DIALOG); } goToCenter(); Utils::loadBitmap(_hSelf, IDC_FTEXIM_INFO_BUTTON, IDB_VIZ_INFO_BITMAP); Utils::addTooltip(_hS...
4,603
C++
.cpp
122
32.467213
128
0.702697
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,113
JumpToField.cpp
shriprem_FWDataViz/src/Dialogs/JumpToField.cpp
#include "JumpToField.h" #include "VisualizerPanel.h" extern VisualizerPanel _vizPanel; void JumpToField::doDialog(HINSTANCE hInst) { if (!isCreated()) { Window::init(hInst, nppData._nppHandle); create(IDD_JUMP_FIELD_DIALOG); } CheckDlgButton(_hSelf, IDC_JUMP_FIELD_PREF_SEQ_NUM, _configIO.getPre...
4,813
C++
.cpp
122
34.442623
142
0.706982
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,114
NppDarkMode.cpp
shriprem_FWDataViz/src/Darkmode/NppDarkMode.cpp
// This file is part of Notepad++ project // Copyright (C)2021 adzm / Adam D. Walling // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your option an...
66,099
C++
.cpp
1,849
26.143862
168
0.581782
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,115
NPP_Plugin_Darkmode.cpp
shriprem_FWDataViz/src/Darkmode/NPP_Plugin_Darkmode.cpp
#include "NPP_Plugin_Darkmode.h" #include "NppDarkMode.h" HWND nppHandle; void NPPDM_InitDarkMode(const HWND _nppHandle) { nppHandle = _nppHandle; return NppDarkMode::initDarkMode(); } void NPPDM_QueryNPPDarkmode() { NppDarkMode::queryNPPDarkmode(); } bool NPPDM_IsEnabled() { return NppDarkMode::isEnabl...
1,540
C++
.cpp
49
29.122449
63
0.804746
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,118
dpiManagerV2.cpp
shriprem_FWDataViz/src/NPP/dpiManagerV2.cpp
// This file is part of Notepad++ project // Copyright (c) 2024 ozone10 and Notepad++ team // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your opti...
5,685
C++
.cpp
189
27.703704
120
0.753978
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,119
ConfigIO.h
shriprem_FWDataViz/src/ConfigIO.h
#pragma once #include "Utils.h" #include <locale> #include <commdlg.h> #include <filesystem> #include <fstream> #include <iostream> #include <regex> #include <ShlObj_core.h> #include <time.h> #include <unordered_map> #include <vector> #define PREF_ADFT "AutoDetectFileType" #define PREF_CARET_FLASH "C...
6,480
C++
.h
128
46.953125
129
0.748972
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,120
Utils.h
shriprem_FWDataViz/src/Utils.h
#pragma once #include "PluginDefinition.h" #include <codecvt> #include <regex> #include <ShlObj_core.h> #define mbox(message) MessageBox(NULL, message, L"", MB_OK) #define mboxA(message) MessageBoxA(NULL, message, "", MB_OK) namespace Utils { constexpr int PREFS_TIP_MAX_WIDTH{ 400 }; int StringtoInt...
2,252
C++
.h
45
46.377778
122
0.760692
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,121
PluginDefinition.h
shriprem_FWDataViz/src/PluginDefinition.h
//This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License //as published by the Free Software Foundation; either //version 2 of the License, or (at your option) any later version. // //This program is distributed in the hope that it will be useful, //b...
2,540
C++
.h
77
31.12987
126
0.774918
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,122
SubmenuManager.h
shriprem_FWDataViz/src/SubmenuManager.h
#pragma once #include "PluginDefinition.h" #include <vector> class SubmenuManager { public: void listSampleFiles(); void loadSampleFile(WPARAM wParam, LPARAM lParam) const; void initSamplesPopup(HMENU hPopup); private: static HMENU getPluginSubMenu(); size_t itemCount; size_t itemIDStart; TCHA...
353
C++
.h
14
22.357143
59
0.781437
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,123
ConfigureDialog.h
shriprem_FWDataViz/src/Dialogs/ConfigureDialog.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" #include "../NPP/StaticDialog.h" #include <regex> #include <vector> constexpr int FILE_TYPE_LIMIT{ 999 }; constexpr int REC_TYPE_LIMIT{ 999 }; const wstring REGEX_META_CHARS{ L"\\^\\$\\\\(\\)\\{\\}\\[\\]\\<\\>\\.\\?\\*\\+\\,\\-\\|\\!\\:\\=" }; using std::wr...
3,452
C++
.h
96
31.9375
117
0.72512
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,124
PreferencesDialog.h
shriprem_FWDataViz/src/Dialogs/PreferencesDialog.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" #include "../NPP/StaticDialog.h" extern NppData nppData; extern ConfigIO _configIO; class PreferencesDialog : public StaticDialog { public: PreferencesDialog() : StaticDialog() {}; ~PreferencesDialog() { if (hbr != NULL) DeleteObject(hbr); }; void...
938
C++
.h
26
32.884615
79
0.763012
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,125
ThemeDialog.h
shriprem_FWDataViz/src/Dialogs/ThemeDialog.h
#pragma once #include "StyleDefComponent.h" #include "../NPP/StaticDialog.h" #include <regex> #include <vector> constexpr int THEME_ITEM_LIMIT{ 999 }; constexpr int STYLE_ITEM_LIMIT{ 99 }; constexpr int SWATCH_ITEM_COUNT{ 29 }; using std::wregex; using std::regex_replace; using std::vector; class ThemeDialog : pub...
2,669
C++
.h
76
31.302632
113
0.750194
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,126
FieldTypeDialog.h
shriprem_FWDataViz/src/Dialogs/FieldTypeDialog.h
#pragma once #include "StyleDefComponent.h" #include "../NPP/StaticDialog.h" class FieldTypeDialog : public StaticDialog, StyleDefComponent { public: FieldTypeDialog() : StaticDialog() {}; void doDialog(HINSTANCE hInst); void refreshDarkMode(); private: INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM ...
918
C++
.h
29
28.034483
76
0.754266
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,127
EximFileTypeDialog.h
shriprem_FWDataViz/src/Dialogs/EximFileTypeDialog.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" #include "../NPP/StaticDialog.h" extern NppData nppData; extern ConfigIO _configIO; class EximFileTypeDialog : public StaticDialog { public: enum exim_clients { FWTYPES_DLG, THEMES_DLG, FOLDS_DLG, EXIM_DLGS }; EximFileTypeD...
1,254
C++
.h
34
33.147059
112
0.73493
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,128
VisualizerPanel.h
shriprem_FWDataViz/src/Dialogs/VisualizerPanel.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" #include "../SubmenuManager.h" #include "../NPP/DockingDlgInterface.h" #include "../NPP/menuCmdID.h" #include <regex> #define FW_DEBUG_SET_STYLES FALSE #define FW_DEBUG_LOAD_REGEX FALSE #define FW_DEBUG_APPLY_LEXER FALSE #define FW_DEBUG_APPLIED_STYLES FALSE...
5,347
C++
.h
152
31.276316
128
0.745015
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,129
StyleDefComponent.h
shriprem_FWDataViz/src/Dialogs/StyleDefComponent.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" extern NppData nppData; extern ConfigIO _configIO; class StyleDefComponent { public: ~StyleDefComponent(); protected: void initComponent(HWND hDlg); void localize() const; int getStyleDefColor(bool back) const; void setStyleDefColor(bool set...
826
C++
.h
24
31.333333
119
0.761965
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,130
JumpToField.h
shriprem_FWDataViz/src/Dialogs/JumpToField.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" #include "../NPP/StaticDialog.h" extern NppData nppData; extern ConfigIO _configIO; class JumpToField : public StaticDialog { public: JumpToField() : StaticDialog() {}; void doDialog(HINSTANCE hInst); void refreshDarkMode(); void initDialog(cons...
885
C++
.h
26
30.884615
111
0.752056
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,131
DataExtractDialog.h
shriprem_FWDataViz/src/Dialogs/DataExtractDialog.h
#pragma once #include "../NPP/StaticDialog.h" #include "VisualizerPanel.h" constexpr int LINES_PER_PAGE{ 10 }; constexpr int MAX_PAGES{ 3 }; constexpr int MAX_BUFFER_LINES{ LINES_PER_PAGE * MAX_PAGES }; constexpr int MAX_TEMPLATE_NAME{ 50 }; extern NppData nppData; extern ConfigIO _configIO; typedef VisualizerPanel...
2,275
C++
.h
65
31.246154
99
0.750911
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,132
FoldStructDialog.h
shriprem_FWDataViz/src/Dialogs/FoldStructDialog.h
#pragma once #include "../Utils.h" #include "../ConfigIO.h" #include "../NPP/StaticDialog.h" #include <regex> #include <vector> using std::vector; extern NppData nppData; extern ConfigIO _configIO; class FoldStructDialog : public StaticDialog { public: FoldStructDialog() : StaticDialog() {}; void doDialog(HIN...
2,848
C++
.h
87
28.563218
123
0.733577
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,133
AboutDialog.h
shriprem_FWDataViz/src/Dialogs/AboutDialog.h
#pragma once #include "../Utils.h" #include "../NPP/StaticDialog.h" using Utils::getVersionInfo; extern NppData nppData; class AboutDialog : public StaticDialog { public: AboutDialog() : StaticDialog() {}; void doDialog(HINSTANCE hInst); void refreshDarkMode(); private: INT_PTR CALLBACK run_dlgProc(UIN...
385
C++
.h
14
25.071429
76
0.754098
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,134
NppDarkMode.h
shriprem_FWDataViz/src/Darkmode/NppDarkMode.h
// This file is part of Notepad++ project // Copyright (c) 2021 adzm / Adam D. Walling // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your option a...
4,520
C++
.h
127
31.409449
109
0.743584
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,135
DarkMode.h
shriprem_FWDataViz/src/Darkmode/DarkMode.h
#pragma once extern bool g_darkModeSupported; extern bool g_darkModeEnabled; bool ShouldAppsUseDarkMode(); bool AllowDarkModeForWindow(HWND hWnd, bool allow); bool IsHighContrast(); void RefreshTitleBarThemeColor(HWND hWnd); void SetTitleBarThemeColor(HWND hWnd, BOOL dark); bool IsColorSchemeChangeMessage(LPARAM lPa...
634
C++
.h
17
36.117647
61
0.859935
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,137
NPP_Plugin_Darkmode.h
shriprem_FWDataViz/src/Darkmode/NPP_Plugin_Darkmode.h
#pragma once #include <Windows.h> #ifdef NPP_PLUGIN_DARKMODE_EXPORTS #define NPP_PLUGIN_DARKMODE_API __declspec(dllexport) #else #define NPP_PLUGIN_DARKMODE_API __declspec(dllimport) #endif // NPP_PLUGIN_DARKMODE_EXPORTS #ifdef NPP_PLUGIN_MODE_LIB_AND_DLL extern "C" NPP_PLUGIN_DARKMODE_API void NPPDM_InitDarkMo...
2,186
C++
.h
40
53.375
97
0.822482
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,139
dpiManagerV2.h
shriprem_FWDataViz/src/NPP/dpiManagerV2.h
// This file is part of Notepad++ project // Copyright (c) 2024 ozone10 and Notepad++ team // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your opti...
3,674
C++
.h
109
31.513761
124
0.76359
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false