|
This:
http://bobmoore.mvps.org/Win32/w32tip46.htm[^]
may give you some insight but I'm not sure.
I always use CreateProcess by concatenating the app name and the arguments and set this as the second parameter (first parameter set to NULL) and it has never failed.
|
|
|
|
|
I suspect your command-line argument is being interpreted as the executable name. See the CreateProcess[^] documentation:
Console processes written in C can use the argc and argv arguments to parse the command line. Because argv[0] is the module name, C programmers generally repeat the module name as the first token in the command line.
While that's talking about C programs, .NET programs conform to that as well. Add an argument before the e-mail address and you should find it all works.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
PROCESS_INFORMATION pi;
ZeroMemory (&pi, sizeof (pi));
STARTUPINFOA si;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW;
//si.wShowWindow = SW_HIDE;
si.wShowWindow = SW_SHOW;
CreateProcessA (NULL, cmd, 0, 0, 0, CREATE_NO_WINDOW, 0, 0, &si, &pi);
|
|
|
|
|
tns_ranjith wrote: STARTUPINFOA
tns_ranjith wrote: CreateProcessA
Why?
|
|
|
|
|
You shouldn't be giving him any importance (take a look at some of his recent posts). You could just mark it down instead.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Oh, I thought he was trying to make a point.
|
|
|
|
|
for unicode project u want to use non unicode characters support..
|
|
|
|
|
In C run-time libs is there a function that renurns if the given string is a directory or a file name?
Чесноков
|
|
|
|
|
|
Thank you very much, your solution is the right one for C run-times.
Чесноков
|
|
|
|
|
Nope. However, you may find these functions [^] useful.
[added]
I was wrong, see [^]
[/added]
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, July 16, 2009 3:43 AM
|
|
|
|
|
CPallini wrote: Nope.
Hi Carlos,
Are you sure about that?
Best Wishes,
-David Delaune
|
|
|
|
|
Randor wrote: Hi Carlos,
Are you sure about that?
I'm quite sure of the opposite, now.
I've to admit, I erroneously read 'path' as 'name' (i.e. more caffeine is needed this morning)
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]
|
|
|
|
|
Randor wrote: Carlos
It's Carlo .
Carlos is the guy who likes tapas and slaughters bulls for a living.
|
|
|
|
|
|
is it possible to prevent the user from left clicking on USB drive icon but allow to right clicking?
i would appreciate if some one post an example for it
|
|
|
|
|
jon ray wrote: is it possible to prevent the user from left clicking on USB drive icon...
Within Windows Explorer?
"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
|
|
|
|
|
sorry for the late reply i was very busy until yesterday and yes within windows explorer
|
|
|
|
|
See if this helps. Also see here.
"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
|
|
|
|
|
Hi
I am using VC++
and i want to change the access of usb device form read and write to read only.
i have understood that ACL can do that.
i would like to know more information about how do we use
ACL in vc++ to change the access of usb device
thanks
Anil Veeraghattapu.
|
|
|
|
|
you can change access of usb device through registry.
Registry path
[code]
LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\StorageDevicePolicies"
[/code]
just you change the values
[code]
"0" to "1"
WriteProtect="1"
[/code]
|
|
|
|
|
I dont want to change it from the registry
i want to do it from the vc++ code
by using win32 api
i have understood that for usb device driver objects ACL if we added the ACE, then we can change it.
but i would like to know which api should i use to achieve this
|
|
|
|
|
Anil709 wrote: I dont want to change it from the registry
i want to do it from the vc++ code
Are you of the thinking that code cannot be used to manipulate the registry?
"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
|
|
|
|
|
i dont want to do anything with the registry
all i want to do is to use win 32 api
and to get the handle of the device and apply acl to it
if you know how to apply ACL on the usb device please help me
thanks
Anil Veeraghattapu.
|
|
|
|
|