I havent managed to find any way of connecting a debugger to gcc (MingW) yet. Can anyone suggest a link?
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
...want to disaply them) the memory is corrupt.
That is to say, the parent structure is in tact, but the memory pointed to by
FirewallRules ** firewallRules;
has become corrupt.
This is looking to all intents and purposes as corruption of the heap.
So is this the correct way to store an...
There might be a solution in unmanaged code that we can put together but I need to know a bit more about what you are trying to do.
It is possible to open the image, and get a handle to the device context but what are you doing with this dll?
Are you writing a dll?
What is the handle to? A...
None of the above. Although the 15 chars + \0 is a good spot.
Need to declare the nested array as
FirewallRules ** firewallRules;
This I think is that the parent structure cannot have dynamically allocated memory structures in it, rather you need a pointer to the array.
Seems to work. Any...
...action;
int ruleStatus;
};
typedef struct _Program Program;
struct _Program{
int id;
char path[1024];
char name[255];
FirewallRule * firewallRules;
int firewallRulesCount;
};
I have an array of Program structs, successfully populated, and the function for adding a program is...
Great answer. Things to try, so I am not feeling as stranded. Thanks for your suggestions.
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
...I have a struct which is defined in a header file (firewallrules.h) thus
typedef struct _FirewallRule FirewallRule;
struct _FirewallRule{
char * dnsValue;
char * ipAddress;
int protocol;
char * user;
char * group;
int action;
int ruleStatus;
};
typedef struct _Program...
...functions in C, and my googling efforts have been confusing at best.
Here is the skeleton of the function
void filterEnumeratedPrograms(char * searchString)
{
int i=0;
int length=0;
length = strlen(searchString);
printf("Search string %s is %d characters long \n", searchString,length)...
I am thick. Opening the wrong key, should open lpSubSubKey not lpSubKey.
Can anyone show me how to scoop the data out of the buffer and into a char array?
Ultimately want to return an array of strings (char arrays) of the installed programs.
Charlie Benger-Stevenson
Hart Hill IT Ltd...
...and lots of advice but nothing works for me.
Here is what I am trying to do.
Two divs (inline)
<div 1>---------------<div2>
Some long *
text that nicely * An image
wraps inside its *
nested div *
I have tried using word-wrap: break-word in the style of the div but this...
Yep found it. Must have downloaded the wrong SDK? Not sure I did, but still. The latest one has the headers. There is a VC directory and they are all in there.
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
Hi ArkM,
Thanks for the timely reply. My question is why is stdio.h not in the include directory of the sdk, essentially.
It was my understanding that the platform SDK contains up to the minute header files. Since VC++ was released there have been many patches to the OS, and the SDK is a good...
Hello,
I want to do some development using the windows SDK. This is the closest forum I can find for my question. I have installed the latest SDK but when I add the include directory to my compiler it complains about unreferenced header files. Eg stdio.h
Sure enough stdio.h is not in the...
I do not have the answer. The above code does not work, nor does it do what I need and everyone seemed to be ignoring the point that strtok does not work for me, so posts such as "try strtok" lead me to think that maybe the one post with two distinct trains for thought may be too much for some...
Hi,
If I have a char array of some values eg
"80,8080,25,1433" etc
And I want to parse this into an int array so that
myIntArray[0] returns 80
myIntArray[1] returns 8080
etc
and I don't want to use strtok, does anyone have any ideas on a simple solution?
Charlie Benger-Stevenson
Hart...
Can you read the original post? Strtok gives me an error in kernel mode. That is why I am either looking for an answer to while the code will not link, or an alternative method for parsing the values into an array of ints.
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
I am writing a kernel mode driver for Windows Vista. I want to use the strtok function. When I compile I get
LKN2019: unresolved external symbol __imp__strtok
Is strtok compatible with this version of the DDK?
I am using latest DDK. I have included string.h, and it compiles but won't link...
Not sure if this is the right place to post, but seems the closest I can find.
I have compiled the "inspect" filter driver example from the latest Windows Driver Kit, and the instructions tell you to install it, and then run it from an elevated command prompt thus
net start inspect
Good in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.