What's the difference between OpenVirtualDisk() and CreateFile() function?
These both does the same work that is opening a vhd file... I want to ask the specific scenarios in which we use these two functions...please correct me if I'm wrong somewhere
See also questions close to this topic
How to patch IAT to hook Windows Native API like LdrGetProcedureAddress?
I am completely new to IAT hooking. Goal is to provide extra functionality by wrapping Windows API.
I write my wrappers in a dll and use (IAT patcher). This tool lists all the imported API from IAT of a binary; I can select any function and define replacement function (One of the function from my wrapper dll) and it works by patching the IAT in some way.
(Pardon me for not explaining how IAT patcher internally works, as I don't know right now)
But Windows native API (e.g. NtOpenFile, LdrGetProcedureAddress) is not explicitly imported and does not have any entry in IAT, so IAT patcher isn't helping.
I also know that there are ways to hook APIs at execution time by injecting dlls (used by rootkits), but I am really hoping that I could hook Windows Naive API by modifying PE binary itself before executing it.
Unable to create notebook in Jupyter notebook windows
After opening my jupyter notebook console from command line when I am trying to open new python 3 notebook I am getting an error within a popup which says. Though I am present in the same directory "Data Visualization with Python".
The error was: Unexpected error while saving file: Untitled.ipynb [Errno 2] No such file or directory: 'C:\\Users\\Himanshu Poddar\\Desktop\\Specialisation\\Data Science IBM(Python)\\Data Visualization with Python\\Untitled.ipynb'
Note : I have tried all possible ways in the suggestions and none of them worked for me.
Using SFML on MinGW
I've been working on a Gameboy emulator, and everything's looking great, I've already implemented the core, flag updates, cycle accurate interrupts, etc. I thought it was time to see something.
I chose SFML for the graphics, and, so far I was able to compile the example program. But, when I tried to compile my emulator, it seems that the actual C++ standard library was unlinked, as the log reports undefined references from STD methods, such as:
agb\main.o:main.cc:(.text+0x91): undefined reference to `__ZSt4cout' agb\main.o:main.cc:(.text+0x120): undefined reference to `__ZNSt8ios_base4InitD1Ev' agb\main.o:main.cc:(.text+0x141): undefined reference to `__ZNSt8ios_base4InitC1Ev'
and, this particularly interesting one:
C:/Users/Astherix/Desktop/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'
Anyone has a clue as to why this is happening?
I use a custom BAT to compile, this is the source:
@echo off set name=%1 echo Started building project '%name%' through gcc. echo Creating object file '%name%.o'... g++ -c %name%.cc -IC:\Users\Astherix\Desktop\mingw64\sfml\include echo Compiling executable '%name%.exe'... g++ %name%.o -o %name%.exe -LC:\Users\Astherix\Desktop\mingw64\sfml\lib -lsfml-graphics -lsfml-window -lsfml-system
Thanks in advance.