Comments (5)
Delphi Connector: https://github.com/diversenok/Kernel-Bridge-Delphi-Connector
from kernel-bridge.
Not yet, but who knows...
Anyway, you can write it yourself and send me a pull request
from kernel-bridge.
I already wanted create one to C# before, well, I stopped when I saw a little complex struct (EPocess if i'm not wrong, there are some bitfields and the C# don't support it), you see, I don't know much of C++, then I had a doubt about the bitfield,
If the struct have a 3 bitfields, this mean we have 5 bits left, but the next field isn't a bit value, but a integer, then what happen now? the interger will begin from this 5 bits left or the reaming bits of the byte will be skipped and then the field will begin in the begin of the next byte?
I think after came with this doubt I think, "nahh forget this shit" and I stopped.
from kernel-bridge.
@marcussacana
Well, if you want to implement bitfields without support in language (like in C#), you can use bit masks (just AND'ing or OR'ing the value with the mask):
int value = 0x123;
int mask = 4; // 0b100 (bits counting started with 0)
// Is bit set:
bool is2ndBitSet = (value & mask) == mask;
// Set the bit:
value |= mask;
// Reset the bit:
value &= ~mask;
You can use this stuff if you need it.
What about bitfields in C++:
union S
{
unsigned long long val; // 8 bytes
struct
{
unsiged int a : 1; // Zero bit
unsigned int b : 1; // First bit
unsigned int c : 2; // Second and third bits
unsigned int d; // 32 bits value starting with 32'nd bit [32..63]! All bits [4..31] are 'invisible' here
} bitmap;
};
And what about pull requests - I accept them if they're well-coded and convenient, but without any special requirements.
So, you're welcome! 😉
from kernel-bridge.
I see, haha, don't care, i'm not newbie enough to don't know bitwise operations, it's just that problem with the bitfield in the struct... well maybe I can give a try a day, thx for the information.
from kernel-bridge.
Related Issues (20)
- How can i load unsigned driver with this signed driver ?
- Windows on ARM, Support? HOT 1
- C++ exception handling is not supported with /kernel HOT 4
- Fastest way to read process memory HOT 10
- N HOT 1
- CppSupport BSOD
- signed binaries can not be loaded HOT 8
- add APIs HOT 1
- Does KbCreateUserThread support windows7 HOT 2
- KbWriteProcessMemory HOT 5
- Compiler crash in 'VMX.h'
- How to use the hypervisor to change the CPUID values? HOT 2
- how to find the process name or id which causes the VM EXIT in hypervisor mode HOT 2
- how to intercept KUSER_SHARED_DATA using Hypervisor?
- Error install HOT 4
- Memory leak at StringAPI operator +
- What are SVM & MSR_VM_CR ? HOT 1
- vlang support
- invalid
- Try using the serialization library based on your CppSupport HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kernel-bridge.