|
prathuraj wrote: tab and dialog or propertysheet will increase
will increase or created at runtime!
|
|
|
|
|
prathuraj wrote: tab and dialog or propertysheet will increase
if you want to increase then you have to look at api like SetWindowPos and MoveWindow and if you want to create same at runtime look at CTabCtrl::Create!
|
|
|
|
|
Tab Control Reference[^]
What are you having problems with?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
prathuraj wrote:
i want free service
have a look at
CTabCtrl::Create
|
|
|
|
|
CPallini wrote: Give me some money before...
how much ???...
|
|
|
|
|
|
CPallini wrote: PS: I'm lazy too, but not THAT LAZY!
he he he!
|
|
|
|
|
Hi all,
I want to enumerate all the users in the domain from my service. I tried
using NetUserEnum and NetQueryDisplayInformation functions but it fails
with access denied. When i run the functions from the console application, it
works fine but from my service (which runs under local system account) it
fails......How do i get around this???.....Is there some other way of
enumerating users of a domain from the service???
kunal
|
|
|
|
|
ku19832001 wrote: but from my service (which runs under local system account) it
fails......
Then run your service from an account with sufficient access rights
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I didnt get it...i thought local system account is the most powerful account with all the rights.....I guess only problem is that only authenticated users are allowed to query the domain but in this local system is not a authenticated user.....Is there some other way of enumeration??
|
|
|
|
|
If it's a security issue then it should fail regardless of what method you use to enumerate.
I would first verify that security is the problem - a breakpoint and check the error code should
do it.
The LocalSystem account may have high priveledges on the local computer but not on the network.
Actually, I'm pretty sure you can't access the network with that account anymore (I may be
confusing it with another account).
It's recommended these days to use specific accounts to run services under which have just the
needed access rights and no more.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
As i said in previous post...i checked the return code and it said....access denied..so i know the problem now...since local system is not authenticated to query the domain, the api will fail...
According to what you are saying, i need to add an (fake) account to the network and then run the service under that fake account to query the domain....this really doesnt look that great idea because then what i means 1) i am adding a non existent user in the network 2) all machines on the domain where my service is running will need to have that account in local machines (which can be a big risk)
So is there some other way of doing it??
kunal
|
|
|
|
|
ku19832001 wrote: As i said in previous post...i checked the return code and it said....access denied
Sorry about that
There's no more risk really. If it worked from the console (meaning you had adequate permission)
and every other user has the permissions then there's no difference.
I trust services I write WAY more than I'd trust any user with enhanced privileges.
Only the service runs in the context of the "fake" account, not the users that log in on the
machine. I'm rusty on my limited IT skills but on a domain can't an account be created on the
domain server and managed there instead of having to add an account to every machine?
Yes managing extra accounts is a pain - you can thank all the hackers that have taken advantage
of security holes in Windows for that. The localsystem acount used to have many more privileges.
Mark
-- modified at 15:32 Sunday 1st April, 2007
fixed some splelling errors
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi All,
I using CTreeView - and i using style of TVS_CHECKBOXES.
I try to call method SetCheck( Item, True) but i dont see that the item is check in -
Some one can halp me ?
Thanks.
|
|
|
|
|
Hi
could any one please tell me where to find opengl version 1.4. I tried the net for a whole day, all invain.
If some one of you have silicon graphics implementation or any please send to me
shiraztk AT rediffmail DOT com
regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Zainu wrote: could any one please tell me where to find opengl version 1.4.
OpenGL comes with the drivers for your graphics card, if the graphics card supports that level of OpenGL. If your graphics card does not support it, level 1.2 is supported through software emulation under Windows XP/Vista and 1.0 under 2000. If you are looking for library support for OpenGL, they are available for each compiler through sites specific for that compiler. Which are you looking for?
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Thank you
I was looking for building an application in VC++ 6.0.
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
|
I want to connect directly 2 computer on the internet. I tried to connect to a ip address which have a sever listening but it dont work. How can I do it ? Please help.
|
|
|
|
|
What did you try? How are you connecting these two computers?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
hoanglinh9466 wrote:
I want to connect directly 2 computer on the internet. I tried to connect to a ip address which have a sever listening but it dont work. How can I do it ? Please help.
what exactly do you want to achieve
|
|
|
|
|
hoanglinh9466 wrote: I want to connect directly 2 computer on the internet. I tried to connect to a ip address which have a sever listening but it dont work. How can I do it ? Please help.
whats your exact problem!
|
|
|
|
|
|
Hi everybody!
i have done a file transfer program and the sender part works well.
but i get a linker error in receiver part!
My error is:
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/aaa.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
The thing is I have not used these functions in my program!
Any suggestions please!
Thanks in advance!
regards,
Shalini
|
|
|
|
|
You must add the .lib file to your project: Project/Settings/link, write your name of .lib file to Object/library modules:
|
|
|
|