|
I'm glad about, but doesn't the HRESULT return value give some info about the translate operation?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Well, technically it could be other values. For example you may recieve a ramdom garbage pointer which resolves to a loaded PE image. A better implementation for checking a variable pointer would be:
MEMORY_BASIC_INFORMATION mbi;
VirtualQueryEx(GetCurrentProcess(),pVar,&mbi,sizeof(mbi));
if (mbi.Protect == PAGE_READWRITE && mbi.State = MEM_COMMIT && mbi.Type == MEM_PRIVATE)
{
}
This ensures:
1.) You can read and write to the address.
2.) The address is allocated and committed memory.
3.) The address is within the private region.
At this point the chance of being a good pointer has become substantially higher.
Best Wishes,
-David Delaune
|
|
|
|
|
I'm trying to obtain the Windows Firewall status, which is simple enough using the get_FirewallEnabled method on INetFwProfile. The problem is that this only retrieves the local policy, which could have been overridden by the group policy and so is sometimes wrong.
Does anyone know if there's a way of retrieving the group policy? There's a get_CurrentProfileType on INetFwMgr, but this just seems to return NET_FW_PROFILE_STANDARD regardless of the policy. There's a NEW_FW_POLICY_TYPE enum, but it's not used in any methods that I can find.
Thanks!
|
|
|
|
|
MSDN has examples for work with Firewall did you see
Using Windows Firewall API[^]?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Thanks. I'd read through this documentation, and can't find any way of obtaining the group policy (or indeed even of telling whether or not the local policy is being overridden). Given the existence of the NET_FW_POLICY_TYPE enum, I'd like to think it's possible, but I'm starting to think maybe it's not...
|
|
|
|
|
hello Experts,
I would like to know the basics of how to use SIP protocol using vc++.This is not regards to any project. Just for my self learning.
Thanks,
Himangshu
|
|
|
|
|
Do you know the wonderful CodeProject article search engine [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thx, I will go through it
|
|
|
|
|
Does it[^] helpful?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hamid. wrote: Does it[^] helpful?
Should be "Is it Helpful"...
anyway, happy new year Hamid, and congratulations for your new status
|
|
|
|
|
You grammar-nazi...
Happy new year tox!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: You grammar-nazi
no insults please
|
|
|
|
|
Thanks where are you old friend? and congratulations for your mvp again.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hamid. wrote: where are you
under my own work... no time anymore to roam on CP baords that much
|
|
|
|
|
Hamid. wrote: Thanks where are you old friend?
Tox deserted: you may find him togheter with the enemy, in the java forum...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
CPallini wrote: Tox deserted
I didn't I just don't have much time, and quite tired answering to google it or to look into an FAQ.
CPallini wrote: with the enemy, in the java forum
Java is not enemy not much than C# at least, so you'd better revise your judgement and spit at VB scripters instead.
|
|
|
|
|
toxcct wrote: Java is not enemy not much than C# at least
Java *is* the (MS) enemy, C# was invented to fight Java . (fighting VB scripters is like bombing the Red Cross ).
BTW: Did you notice the joke icon?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Did you notice the joke icon?
anyway :
CPallini wrote: Java *is* the (MS) enemy
crap. everything is Ms enemy, but MS is not god, and it's not them to dictate to programers what language is best. I just want them to be a software producer, to produce good, not bugged things, and then people will nicely come to them. but that's definitely not the case currently. Java is a damn good language, but MS could not stand to have a free, well appreciated language aver the world and over the web, so they though they had to (once again) create their own version of something already existing...
CPallini wrote: fighting VB scripters is like bombing the Red Cross
you're rude. everybody knows what VB is, so please don't compare them to Red Cross, which is way more respectable than MS
|
|
|
|
|
toxcct wrote: crap. everything is Ms enemy, but MS is not god
Crap.
Not all is MS enemy and MS is not that bad.
Java was a true MS enemy, and the MS's counter-attack produced .NET (that's IMHO damned good).
toxcct wrote: and it's not them to dictate to programers what language is best
Unfortunately they try to do that.
toxcct wrote: I just want them to be a software producer, to produce good, not bugged things, and then people will nicely come to them. but that's definitely not the case currently. Java is a damn good language
Nothing to say: Your are free to use the language you like the most and Java is (IMHO) indeed a very good language. I called Java 'the enemy' while it is by no means our enemy (the joke icon...).
toxcct wrote: Java is a damn good language, but MS could not stand to have a free, well appreciated language aver the world and over the web, so they though they had to (once again) create their own version of something already existing...
They I've learned from the 'Java experience': there are free version of Visual Studio, CLI (and C# ) are ECMA standards,...
IMHO the .NET platform is quite similar though better than the Java one. But that's natural, Java was a rather pioneer experience.
toxcct wrote: you're rude. everybody knows what VB is, so please don't compare them to Red Cross, which is way more respectable than MS
Something personal with MS (I was actually joking also about VBScript, in fact I like it...)?
BTW: welcome in the THHB [^], toxcct !
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Thursday, January 8, 2009 11:52 AM
|
|
|
|
|
CPallini wrote: Java was a true MS enemy
well, because they wanted to. By making people think Java was the enemy, they would naturally come to .NET, which is the obvious antagonist of Java. but Java never attempted to make some dark over Microsoft. Java is Cross Plateform, which .NET is definitely not, and Sun have another niche than MS, so they don't really disturb each other.
What I hate in this is earing all that idiot programmers spitting that Java is Crap, and .NET is way better, but who never put their hands into a java code for once. Microsoft is the only culprit in this way of thinking which is hateful.
.NET is sure a good product, but I'd never say it is best for anything. it has good advantages over Java, such like Java has many other good advantages over .NET too !
CPallini wrote: Unfortunately they try to do that
disgraceful
CPallini wrote: I called Java 'the enemy' while it is by no means our enemy
None is MY enemy. I use all, depending on my needs.
CPallini wrote: IMHO the .NET platform is quite similar though better than the Java one. But that's natural, Java was a rather pioneer experience
Hey, Java is not a dinosaur. it's still being improved, so I repeat myself, saying .NET is better means nothing.
CPallini wrote: VBScript
that's totally different. I was talking about VB 6 and/or VB.NET.
CPallini wrote: BTW: welcome in the THHB [^], toxcct !
lol. nice
|
|
|
|
|
Do you need help?toxcct is serious,are you ok?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Unfortunately you cannot help me: it's a duel!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
With gun or sword?
Pallini you are in our heart.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hamid. wrote: With gun or sword?
With sword, of course!
Hamid. wrote: Pallini you are in our heart.
Well: I should defend THHB 's honour! Ooops, now tox is a THHB 's member too!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|