|
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
If you read my post more carefully, you could see that I didn't say that there is no problem with LockWorkStation() at all, I said that I haven't encounter a problem with it
|
|
|
|
|
Mike did read your post (perhaps you inadvertently asked the wrong question). He was politely telling you that if LockWorkStation() behaved as you wanted, imagine the security hole that would be created.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Welcome again, mike.[^]
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]
|
|
|
|
|
I m new in VC++ and also c++
I want to create a wrapper class. i want create wpcap.dll to API application.
and then that created dll is must referred to C# application.
Please help me
|
|
|
|
|
Please, can you read the guidelines[^] and rephrase your question?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi everybody,
I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match!
Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work!
Thanks in advance!
William
|
|
|
|
|
|
wildcard interpretation == "globbing" (yeah, I know - don't ask me where the name came from).
This CodeProject article[^] has (or claims to have) globbing code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I am trying to post a message from one application to another using PostMessage().
I is working fine in XP and Vista (UAC disabled) but it is not working with Vista(UAC Enabled).
Anyone can tell me, how to use it?
|
|
|
|
|
Well, from the documentation[^]:
Microsoft Windows Vista and later. Message posting is subject to User Interface Privilege Isolation (UIPI). The thread of a process can post messages only to message queues of threads in processes of lesser or equal integrity level.
I guess you need to elevate the privileges of the sender to at least those of the receiver before the PostMessage
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: I guess you need to elevate the privileges of the sender to at least those of the receiver before the PostMessage
Sure but only cheaters that read the documentation know that.
|
|
|
|
|
What can I say - I've never played the game straight if I can get an unfair advantage somehow
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Some people even search Google. What say?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
MPTP wrote: but it is not working with Vista(UAC Enabled).
define: "not working"
Did you get an error? Any return values, etc.,?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
See also here [^].
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]
|
|
|
|
|
Hello All,
When I am executing the following code
SC_HANDLE schSCManager, schService;
TCHAR szPath[MAX_PATH];
GetModuleFileName(NULL, szPath, MAX_PATH);
schSCManager = OpenSCManager(NULL, NULL ,SC_MANAGER_ALL_ACCESS);
if ( schSCManager == NULL )
return false;
schService = CreateService(schSCManager, USER_SERVICE_NAME, USER_SERVICE_NAME,
SERVICE_ALL_ACCESS,SERVICE_WIN32_OWN_PROCESS,SERVICE_DEMAND_START,SERVICE_ERROR_NORMAL, szPath, NULL, NULL, NULL, NULL, NULL);
The
CreateService() is not returning a proper handle. When I used
GetLastError() , its throwing a
ERROR_ACCESS_DENIED error. Please help in solving this issue.
Thanks in advance,
Neelesh K J Jain.
|
|
|
|
|
Are you executing this from an account with administrator access?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Yes, I have the administrator access.
Thanks,
Neelesh K J Jain.
|
|
|
|
|
From the documentation[^]:
ERROR_ACCESS_DENIED | The handle to the SCM database does not have the SC_MANAGER_CREATE_SERVICE access right. |
That implies that when you called OpenSCManager[^], you didn't ask for the SC_MANAGER_CREATE_SERVICE access right.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello Stuart,
I tried even with SC_MANAGER_CREATE_SERVICE access right, then also I am getting same error code as access denied.
|
|
|
|
|
Neelesh K J Jain wrote: even with
'even with'? That access right (implied by SC_MANAGER_ALL_ACCESS ) is absolutely necessary for creating a service. And you did include it in your call to OpenSCManager , right?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
GetModuleFileName(NULL, szPath, MAX_PATH);
CreateService(schSCManager, USER_SERVICE_NAME, USER_SERVICE_NAME, SERVICE_ALL_ACCESS,SERVICE_WIN32_OWN_PROCESS,SERVICE_DEMAND_START,SERVICE_ERROR_NORMAL, szPath, NULL, NULL, NULL, NULL, NULL);
Try register service from another process
|
|
|
|
|
Hi All
Can i get copied Files/Folder Path which is used copied by option "Cut or Send to Option"?Can any one give tips or example?Plz help me
|
|
|
|