Hi Kushagra, Thanks a lot for your help. I will just try with the methods you described. I have also came accros some posts where it is said to use CreateProcessAsUser function to launch the child process. But I could find a proper code to get the "Token Handle" to be used as a parameter to this function. Could you please help me in this area. ? with thanks and regards Ranojay
Ranojay
Posts
-
Windows Service cannot access mapped network drive -
Windows Service cannot access mapped network driveThanks, But I need to know How to use my CreateProcess function from the service so that it can read or write any loaction on the system.
-
Windows Service cannot access mapped network driveDear all, I have a console application that writes data to shared network drives. No problem if I launch it from command prompt or Windows explorer. But things go wrong if I call it from a Windows service created with sc command, The appliaction runs in memeory that is for sure, but for some reason it cannot get acess to network drives. ( both the console application and the windows service are wriiten in VC8 ) Please Help Regards
-
rsh command on Windows XPDear friends I want to run rsh command from windows command prompt just to launch a command or an executable on a separate machine this is what I do rsh 192.168.4.223 -l comp1 dir and this returns me > 192.168.4.223:Connection refused rsh: can't establish connection can somebody explain this... what should I do to run a command on a remote machine thanx ranojay
-
Event handler for Check box in Tree Conrol VC++Thanks friend The article you refered is with VB but I want to do it in MSVC 2005 best regards ranojay
-
Event handler for Check box in Tree Conrol VC++Dear friends How do I add an event handler for responding to the check box click in a TreeView control in a dialog box thanx Ranojay
-
WindProc function in DLL ?Dear David Actually the project I am working on is Quite complicated and is made with Qt. But whatever the GUI mechanism be I should be able to intercept windows events right ? I havent used SetWindowLongPtr, as I do not know how to use it. I want to broadcast a particular WM_USER event and I need to have the handler only in my application..So even if all the top level windows recieve it, but Only my dll will be able to process it. Please help me with WM_USER and HWND_BROADCAST mechanism... with lots of thanks Ranojay
-
WindProc function in DLL ?Thanks a lot friend, I did add a DefWndProc function but , the control does'nt reach there, I mean how do I make this function understand that this belongs to this particular window. In case of writing program with WinMain we explicitrly specify this, but how to do that in this case.. and also regarding the "WM_USER + nuber" type of messages, I use SenMessage with HWND_BROADCAST option, but for some reason The event handler doesnt seem to respond please help Ranojay
-
WindProc function in DLL ?Dear friends Is it possible to add a WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) or a DefWindowProc( HWND hWnd,UINT Msg, WPARAM wParam, LPARAM lParam) function inside a DLL, The reason is My application wants to handle WM_USER messages but only when the DLL is loaded, So I need to have the function there in the DLL, If my Main application recieves the event it will use this handler to process this. Is this possible...if so ..How....? please Help Ranojay
-
Tree Control without check box in the rootThanks a lot, friend where do I find the source codes ?
-
Tree Control without check box in the rootHi friends, I have a tree control in MFC, if I use the check box option, then even the root item gets the check box. I want to have a tree control with check boxes in the child but not at the root. thanks Raanojay
-
GetShortPathName not working on x64 systemHi All I am using the library function GetShortPathName to get the (windows)path name without spaces. Unfortunately this function is not working when I am compiling my output for x64 system The function is returning some garbage values. If it is a library function, I guess it uses C Run-Time Libraries (CRT), then why would it be different from 32 bit libraries. please note that my hard drive has NTFS and I can also see the short path name when I use the command dir /x . please help
-
pThread for x64 systemThanks ...can u tell me the steps for this... i will call this from the x64 commandline of MSVC 2005 ? any changes to be done in the make file ? thanks again
-
pThread for x64 systemHi friends Can someody tell me how to find pThreadVC.dll and pThreadVC.lib for x64 sytem. I mean I need 64 bit binaries to raun on 64 bit system. I have the source files and I have also managed to get the 64 Binaries from them, But they are not working If I use nmake to create 64 bit what option should I give as command line parameter so that it will create 64bit output Thanks
-
Setup and deployment project Shortcut creating problemI can Install... I mean I can copy the files and folder on to users system but not prperly. the system is not working perfectly... The user icons are not geting created and ...start menu entries are not added properly... but it surely creates the files and folderd I want to create on users system... and deletion of the files is also not working... Half working ...half not :confused: what to do ...I need the proper steps for creating an installer prperly ;)
-
Setup and deployment project Shortcut creating problemIt works but ... The Icon cannot launch the executable, actually I have a "Bin" folder under application folder where I keep the Binaries... I can select the executable from it..but in the runtime it does'nt serve the purpose and all the file stays even after uninstalltion ... how to deal with that .... here is my email id sen_ranojay@email.com any suggestion and help invited thanks a lot :)
-
Setup and deployment project Shortcut creating problemThanks a lot friend.....can u be more specific.. I can do the steps u have mentioned but not these steps 5. Look in : File System on Target Machine you can see some folders listed as Application Folder System Folder etc Click on the folder. 6. Select the EXE for shortcut In my case, after clicking on the create shortcut ... I see the shortcut and the aproperty window... where I cannot select any file as executable...It only gives you the option to browse through folders. I mean I have the shortcut but how do I make it link to the executable file. I am using MSVC 2005 thanks again
-
Setup and deployment project Shortcut creating problemHi Facing a problem friends.... plz help I have a windows application with several executable and Dll's, and I am trying to make an installer to packge them all together and generate a Setup program. For this I am using Setup and Deployment project of MSVC 2005. The Installer I am making is working perfectly except It cannot create a desktop shortcut Icon and add a shortcut to the users program menu. The project has an option to select the short cut, but it only allows you to select the folder where the shorcut is and not the executable file for which you want to make the shortcut How do I select the executable file for which I want to make adesktop short cut and Icon ? :confused: Thanx in advance Plz Help
-
Creating SQL viewHow do i create a "VIEW" in SQL in MS-ACCESS Databases ? Help!:confused:
-
How to access a single object from multiple threadSir I tried all the functions but it is still not working some rows are surely getting updated but some of them are not the error Mesage is
No rows were affected by the update or delete operation.
has it any thing to do with the type of database I am using.Actually I am uising MS-ACCESS database. may be ACCESS is not able to handle concurrent updates