|
User the CreateProcessAsUser to launch such an application.
Service run in high privilege and so such apps must be launched with the security token of an interactive user.
In Vista interactive services are not allowed.
«_Superman_»
|
|
|
|
|
The CreateService documentation[^] mentions the SERVICE_INTERACTIVE_PROCESS flag for the dwServiceType flag, which seems applicable?
There's also this page[^], which talks about interactive services?
Does that help?
|
|
|
|
|
Thanks for your reply. But I tried with this but due to this there is a problem in service start up.
SNI
|
|
|
|
|
Vista is explicitly disallowing interactive services nowadays - they strongly encourage some sort of IPC between the service and a client user program.
Iain.
|
|
|
|
|
Sounds fair enough, to be honest. I'm not using Vista anywhere, so haven't fallen over that (yet).
If it was a WinXP/Win2000 compatibility problem, however, I'd be all over it - the standard desktop OS where I work is still Win2000....
|
|
|
|
|
I only use Vista at home so I can keep my experience up. Work is all XP/2K.
But I try and keep an eye on (eg) Vista so I don't end up making a pain for myself in the future. I'm actually a bit of a fan of UAC - the only problem with it is that so much software is written arrogantly, assuming it has the right to piddle all over my machine.
[rant]
You (not necessary Mr Dootson) have sold me a game. What possible justification can you give to get me to give you admin rights? It's handy for you? Tough, write better code.
[/rant]
At least games have a selfish excuse of installing DRM. It may not be a /good/ excude, but it's plausible. But the amount of 'real' apps that misbehave...
Yours respecting the difference between HKLM and HKCU since 1999...
Iain.
|
|
|
|
|
Iain Clarke wrote: the only problem with it is that so much software is written arrogantly, assuming it has the right to piddle all over my machine
Couldn't agree more - that's why I've always (since we started using Windows 2000) been an advocate of doing all development work (or testing, at very least) as a non-privileged user, rather than as admin. That's the only way I can be reasonably sure that I've implemented solutions that are appropriate for the environment in which they're to be deployed - or alternatively be able to identify exactly where you have to step outside the security limitations.
|
|
|
|
|
I do test under a limited user, but I don't develop that way - too much of a pain. But if my code breaks my machine, at least it's my own fault...
Quite a lot of my work is interfacing with other peoples hardware libraries, so opening up the odd security hole for them can be a bit painful for my principles.
Iain.
|
|
|
|
|
Iain Clarke wrote: [rant]
You (not necessary Mr Dootson) have sold me a game. What possible justification can you give to get me to give you admin rights? It's handy for you? Tough, write better code.
[/rant]
[counter-rant]
You have bought, if have you (not necessary Mr Clarke ), the game. Now, how can that game meet all your expectations about its performances without hacking your machine? So, please, first make it admin and then bomb Los Angeles!
[/counter-rant]
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: So, please, first make it admin and then bomb Los Angeles!
While I do have a powerful machine at home, I have yet to connect my USB powered stealth bomber... (cordless, of course...)
Would a USB xmas tree do the job? Or nerf missiles? I can borrow then...
Iain.
|
|
|
|
|
Iain Clarke wrote: Would a USB xmas tree do the job? Or nerf missiles? I can borrow then...
Have you a USB xmas tree ?
I shoud know you have it: UK is far more advanced than Italy ...
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]
|
|
|
|
|
|
Actually food stereotypes are pretty true for my family.
Iain Clarke wrote: [*] Why doesn't my supermarket stock the extra slutty kind...
We've the real thing, my father-in-law makes it.
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]
|
|
|
|
|
Sir,
I have a MS Access 2003 database which have a data field(a column) with ASCII font.Now,I need the database to be supported by unicode 5.1 norms.Do conversion from mdb to SQLite3 will meet the requirement?Do I have to convert the entire data to a new unicode 5.1 enabled font?.Please help me.
|
|
|
|
|
There is a general database forum where you might get help.
I certainly have no clue about your problem... And as I am the bestest ever expert at C++, noone else will.
(Ok, they might...)
Iain.
|
|
|
|
|
OK. This time you've hit the target [^].
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: This time you've hit the target
Iain, The Masterful Visionary Potentate.
|
|
|
|
|
A database column with a font?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: A database column with a font?
The last resort to evangelize software developers.
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 )
|
|
|
|
|
I am using the picture control as horizontal line in my dialog with height 2 pixel.
How to change its color?
Advance thanks for help!!
|
|
|
|
|
Handle the WM_CTLCOLORSTATIC message and return the required brush.
« Superman »
|
|
|
|
|
The color is changed only after I changed Picture control type to image.
Thanks
|
|
|
|
|
I think it desont work if you change type of static control to horizontal.
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 )
|
|
|
|
|
Hai All
Crash occured while displaying Color Chooser Dialog form a Property Sheet
CHOOSECOLOR* pstChooseColor = new CHOOSECOLOR;
ZeroMemory( pstChooseColor, sizeof( CHOOSECOLOR ));
pstChooseColor->Flags = CC_RGBINIT;
pstChooseColor->lStructSize = sizeof( CHOOSECOLOR );
pstChooseColor->hwndOwner = m_hWnd;
pstChooseColor->rgbResult = ConfigMgr::Instance().GetBkColor();
ChooseColor( pstChooseColor );
called from the DialogProc of PropertyPage
case WM_COMMAND:
{
int nCtrlCode = LOWORD( wParam_i );
if( IDC_BTN_CHANGE_COLORS == nCtrlCode )
{
pDisplaySettingsPage->OnChangeColor();
}
}
break;
Please help
|
|
|
|