I am trying to dump the contents of Interrupt Vector Table on 32 bit Widows 7 machine using the following code excerpt.
#include <stdio.h>
#define WORD unsigned short
#define IDT_001_ADDR 0 ...
Type: Posts; User: juice
I am trying to dump the contents of Interrupt Vector Table on 32 bit Widows 7 machine using the following code excerpt.
#include <stdio.h>
#define WORD unsigned short
#define IDT_001_ADDR 0 ...
Thanks for bringing it to my notice. I need some more research on conventions and data types. char's,TCHAR's, WCHAR's, _TCHAR's and all other jumble of data types are particularly confusing and...
Why does the following snippet only print out `C` and not the entire path which is way longer??
LPTSTR lpBuffer = (LPTSTR)malloc(256*2);
GetCurrentDirectory(256, lpBuffer);
MessageBoxA(NULL,...
127
ERROR_PROC_NOT_FOUND
127 (0x7F)
The specified procedure could not be found.
Hey! That works!!
How??
And why not the other way??
Yes oogabooga, that is my source of reference.
Following is dllmain.c
#define WIN32_LEAN_AND_MEAN /* speed up */
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <tchar.h>
Following is the code for WinDll.h
// INCLUDE FILE generated by "Pelles C for Windows, version 3.00".
#ifndef _WINDLL_H
#define _WINDLL_H
#ifdef _WINDLL_
Here a clip from IDA Pro indicating names of the exported functions from WinDll.dll
13328
I'm compiling everything in Pelles C.
GetProcAddress fails.
I built a DLL (WinDll.dll) that exports a function called 'SampleFunction'. I placed the DLL in the same folder as that of the executing application, however it gives an error when I try to get the...
Why do I get that error when I try to compile this code
#include<windows.h>
int _stdcall _tmain(int argc, _TCHAR* argv[])
{
}
I think I accidentally changed some settings in my MSVC 2010 compiler and now I can't find the compile and execute option. Also when I hit the tab button for indentation an arrow(->) appears. I...
MSVC 2010 express
I found the file in some distant corner of my PC, but now I can't understand how to use it. I have added the file to the header files of my project but I still get the same error - "cannot open...
I have installed win sdk but I still can't find the file afxres.h. Can someone please upload that for me.
Can someone please explain me what is a Pseudo Variable and what exactly is the first parameter to the function WinMain below??
GetStartupInfo(&StartupInfo);
int nMainRetVal =...
Still not working. Got a whole new bunch of errors
'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not...
Can someone please tell me which header to use for using getline() in C++. I have used
#include<iostream>
#include<string>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
none...
Is there any function which can set the text cursor on the screen at the specified cordinates??
I am on windows, and writing a console application..
How can we write an array of 8 arrays of 7 pointers to int??:confused:
This is what makes me think so...
#include"stdafx.h"
#include<iostream>
#include<fstream>
struct record
{
char code[6];
No one really understood the question, or maybe I was unable to express myself, but I let it go, assuming(from what I observe from a couple of programs) that seekg and seekp can be used...
What is the difference between seekg() and seekp(), and tellg() and tellp(), as they always appear to be returning the same values ?