Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Aseem Sharma

@Aseem Sharma
About
Posts
65
Topics
35
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can I sell my products viz. Employer Surveillance and Parental Surveillance along with their source code
    A Aseem Sharma

    Hi Friends, I have developed few products viz. Employer Surveillance and Parental Surveillance. Also a website to sell those products. Please check my website http://www.surveillancesoftwares.com/ Can someone help me selling all my projects (along with source code) and that website? These projects have received various awards and 5 star ratings. These have been very well received by all the parties who did install them. You can just download any of them from my website and install them. I guarantee, you all will love them. Please let me know if someone can help me in selling my projects. Best Regards Aseem Sharma

    Running a Business question com help

  • How to get a list of all the APIs exposed by a web service?
    A Aseem Sharma

    Hi all, I have created a ServiceReference (to a JAVA Web-Service) using WSDL.exe. It created a .cs file. I have added this file into my project and using it. No problem up till this point. But I want to know all the APIs exposed from that JAVA Web-Service. How can I do it programmatically and at run time (Using c#)? Please help. Thanks and Regards

    C# help question csharp java wcf

  • How to not allowing the user to kill a process from Task Manager
    A Aseem Sharma

    Hi friends, I am developing a Parental Control application. I want that no body could kill this application from Task-Manager. Even administrator should not be allowed to kill this process from Task-Manager. The only way to close the application should be that user click its CLOSE button, he will be then asked to enter his password, and if he enters correct password, application would get closed. The behavior should be similar to when user try to kill an anti-virus. For example when I try to kill the anti-virus Kaspersky, I get below error message:

    _**---------------------------
    Unable to Terminate Process

    The operation could not be completed.

    Access is denied.**_

    I also want similar behavior. Please let me know, how to do that. Thanks in advance

    C# tutorial help

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit?
    A Aseem Sharma

    Hi Prashanth, Thanks for replying me. Finally I got the answer for my query. To run a command in Start->RUN (on Windows7 or Vista) with escalated rights we should press Ctrl+Shift+Enter. It will then run the command with admin rights. Earlier since I was pressing Enter only, service was not getting registered. About placing the service in SysWow64, since all my binaries are in SysWow64, I am placing the service's exe there only. Regards Aseem

    ATL / WTL / STL c++ help question com tools

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit
    A Aseem Sharma

    Thanks Shilpi. Actually I didn't get reply for some time so I did post in different forum. Sorry for that. The way you are saying, is making my service 64 bit itself. My application consists of 4 DLLs, one ATL service(an exe) and a main exe. And all these binaries are 32 bit. So I want my service to be 32 bit only. Any help you can provide? Thanks and Regards Aseem

    C / C++ / MFC c++ help question com tools

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit
    A Aseem Sharma

    Hi friends, My product have a ATL/COM based C++ service (32 bit). It get registered and run fine on XP 32 bit and Vista 32 bit. But now I want to run the same on Windows7 64 bit also. I tried to register the service the following way: 1 I did Copy MyService.exe at C:\Windows\SysWOW64. 2 Then executing "C:\Windows\SysWOW64\MyService.exe" -RegServer from Start->Run 3 Then executing "C:\Windows\SysWOW64\MyService.exe" -Service from Start->Run But my service is not getting registered. While registering it, I don't get any error message. Also I didn't find any entry in event viewer (I saw event viewer first time. Don't know where to see the log about registration of my service). And I didn't find entry for my service at Control Panel\Administrative Tools\Services. Please advise me how can I register my service? Thanks in Advance Regards

    COM c++ help question com tools

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit
    A Aseem Sharma

    Hi friends, My product have a ATL/COM based C++ service (32 bit). It get registered and run fine on XP 32 bit and Vista 32 bit. But now I want to run the same on Windows7 64 bit also. I tried to register the service the following way: 1 I did Copy MyService.exe at C:\Windows\SysWOW64. 2 Then executing "C:\Windows\SysWOW64\MyService.exe" -RegServer from Start->Run 3 Then executing "C:\Windows\SysWOW64\MyService.exe" -Service from Start->Run But my service is not getting registered. While registering it, I don't get any error message. Also I didn't find any entry in event viewer (I saw event viewer first time. Don't know where to see the log about registration of my service). And I didn't find entry for my service at Control Panel\Administrative Tools\Services. Please advise me how can I register my service? Thanks in Advance Regards

    C / C++ / MFC c++ help question com tools

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit?
    A Aseem Sharma

    Hi friends, My product have a ATL/COM based C++ service (32 bit). It get registered and run fine on XP 32 bit and Vista 32 bit. But now I want to run the same on Windows7 64 bit also. I tried to register the service the following way: 1 I did Copy MyService.exe at C:\Windows\SysWOW64. 2 Then executing "C:\Windows\SysWOW64\MyService.exe" -RegServer from Start->Run 3 Then executing "C:\Windows\SysWOW64\MyService.exe" -Service from Start->Run But my service is not getting registered. While registering it, I don't get any error message. Also I didn't find any entry in event viewer (I saw event viewer first time. Don't know where to see the log about registration of my service). And I didn't find entry for my service at Control Panel\Administrative Tools\Services. Please advise me how can I register my service? Thanks in Advance Regards

    ATL / WTL / STL c++ help question com tools

  • Register a 32 bit ATL service on Windows7-64 bit?
    A Aseem Sharma

    Sorry

    C# c++ question com announcement

  • Register a 32 bit ATL service on Windows7-64 bit?
    A Aseem Sharma

    Hi friends, Previous version of my product have a ATL/COM based C++ service (32 bit). It get registered and run fine on XP 32 bit and Vista 32 bit. But now I want to run the same on Windows7 64 bit also. I tried to register the service the following way: 1 I Copied MyService.exe at C:\Windows\SysWOW64. 2 Then executing "C:\Windows\SysWOW64\MyService.exe" -RegServer 3 Then executing "C:\Windows\SysWOW64\MyService.exe" -Service But my service is not getting registered. Please advise me how can I do this? Thanks in Advance Regards

    C# c++ question com announcement

  • How to port a 32 bit application on 64 bit OS
    A Aseem Sharma

    Thanks.

    C# c++ help csharp com windows-admin

  • How to port a 32 bit application on 64 bit OS
    A Aseem Sharma

    Hi friends, I developed a 32 bit application around 2 years back. It could get installed (setup created using Inno Setup) on XP, Vista and Windows 7 32 bit. And it runs without any problem. But now people have started shifting to 64 bit OSes. One of my friend tried to install my application on 64 bit Windows 7, but he could not install. Then he just copied binaries of my application on C drive (C:\MyApp directory). But then again, it didn't run. I don't have any 64 bit machine and so could not try to run my application there. Please let me know, do I need to make changes either in installer or in my code so that my application start working on 64 bit OS? Here is my application detail: 1 Currently my application is installed in C:\Windows\System32 directory. 2 My application consists of - one C++ dll (32-bit), - C++ COM based ATL Service (32-bit) (it is registered with -RegServer and -Service command line parameters), - 3 .net dlls/assemblies and - one .net exe (the main exe). While creating installer, do I need to make changes so that application could run on WOW platform? (like copying all above binaries in system32 or system64 directory)? My application plays with all registry hives (HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_CLASSES_ROOT and HKEY_UUSERS). Do I need some changes for access/changes to all these registry hives? Please help me so that with minimum changes may application become able to run on all 64 bit OSes. Thanks in Advance

    C# c++ help csharp com windows-admin

  • How to get serial number of motherboard using C++ on WINDOWS?
    A Aseem Sharma

    Hi friend. Thanks for your reply. I have changed the plan. I'll use some third party licensing. Regards Aseem

    C / C++ / MFC c++ tutorial question

  • How to get serial number of motherboard using C++ on WINDOWS?
    A Aseem Sharma

    Hi friends, Can somebody provide me the sample code for getting serial number of motherboard using C++ on WINDOWS? Regards Aseem

    C / C++ / MFC c++ tutorial question

  • Every time I format my system, I get a different MAC address (Windows XP, VISTA and Windows7). Why I am not getting same MAC every time?
    A Aseem Sharma

    Actually I found that Address member on many machines comes as an empty string. But it was AdaptorName member of PIP_ADAPTER_INFO which return the string such as "4960B27D-C24F-4C8B-886E-4E6BB93913C4".

    C / C++ / MFC help python sales question

  • Every time I format my system, I get a different MAC address (Windows XP, VISTA and Windows7). Why I am not getting same MAC every time?
    A Aseem Sharma

    Hi friend, Thanks for reply. Yeah, you are right in that one should use third party licensing libraries. But my software is very cheap. It would cost around 5-8 dollars per license. Also I don't know if I could capture the market. So cannot afford to buy any licensing scheme. But yes, as you said licensing based on MAC address is not a good approach. Can you help me in how get serial number of mother board? 3-4 months back, I did try to get serial number of mother board using WMI. But I could not do so. If you can provide some sample code about how to get serial number of mother board using any other mean (but using C++ only)? Regards Aseem Sharma

    C / C++ / MFC help python sales question

  • Every time I format my system, I get a different MAC address (Windows XP, VISTA and Windows7). Why I am not getting same MAC every time?
    A Aseem Sharma

    Hello friends, I am using MAC address to implement licensing in my application. As far as I know, MAC address of every system is unique and is very commonly used for licensing purpose. For giving license of my application, I generate a unique key based on MAC address of a particular system and send that key to the customer. But the problem is that every time I format my system, I get a different MAC address. Doing this is problematic as every time customer format his system, he will need a new key (as his MAC address will also change on formatting his system). Another problem is that if someone have two OS say XP and VISTA on his machine, he'll need two different keys to activate the license on both of the OS. What I want, I get same MAC address even though customer keep on formatting his system (so that he can use same key every time). Also I get same MAC address on all the Operating Systems on a single machine (so that he can use same key on all the Operating Systems on his machine). Is it possible to do so? If yes then how? If not then why not? Please help me. Right now I am using below code to get MAC address of a system:

    std::string strMACAddress;
    try
    {
    PIP_ADAPTER_INFO pAdapterInfo = NULL;
    ULONG ulOutBufLen = sizeof (IP_ADAPTER_INFO);
    pAdapterInfo = new IP_ADAPTER_INFO();
    if (pAdapterInfo == NULL)
    {
    return;
    }

    // Make an initial call to GetAdaptersInfo to get
    // the necessary size into the ulOutBufLen variable
    int iResult = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen);
    if ( iResult == ERROR\_BUFFER\_OVERFLOW )
    {
    	delete pAdapterInfo;
    	pAdapterInfo = new IP\_ADAPTER\_INFO\[ulOutBufLen\];
    	if (pAdapterInfo == NULL)
    	{
    		return;
    	}
    }
    
    if ( iResult != ERROR\_SUCCESS )
    {
    	iResult = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen);
    	if ( iResult != ERROR\_SUCCESS )
    	{
    		delete pAdapterInfo;
    		pAdapterInfo = NULL;
    		return;
    	}	
    }
    
    strMACAddress = pAdapterInfo->AdapterName;
    delete pAdapterInfo;
    pAdapterInfo = NULL;
    

    }
    catch (...)
    {
    }

    Thanks in advance, Best Regards Aseem

    C / C++ / MFC help python sales question

  • How to run program at windows startup with administrator rights (on VISTA and Windows 7 )?
    A Aseem Sharma

    Hi Piebald, Thanks for your reply. My requirement: My application can allow/revoke the right of changing system time and date to any user but only if it is being run from an administrator user. When I run my app while logged on as an non-admin user, my application cannot allow or disallow any right to any user (this is desired behavior and its working fine). But same thing happens even when I log on as a user with admin rights. The only way my app can allow or revoke rights to any user is first-the current user should have admin rights, second-application run with "Run as administrator" option. If you can suggest me any solution, plz let me know. Best Regards Aseem

    C# csharp help tutorial question

  • How to run program at windows startup with administrator rights (on VISTA and Windows 7 )?
    A Aseem Sharma

    Hi Dave, Thanks for your reply. Actually I am new in .Net technologies. I don't know how to create a manifest file. I don't know how to ship it with installer. My requirement: My application can allow/revoke the right of changing system time and date to any user but only if it is being run from an administrator user. When I run my app while logged on as an non-admin user, my application cannot allow or disallow any right to any user (this is desired behavior and its working fine). But same thing happens even when I log on as a user with admin rights. The only way my app can allow or revoke rights to any user is **first-**the current user should have admin rights, **second-**application run with "Run as administrator" option. Please help me in below things: 1 How to create a manifest file? 2 Is it sufficient to just place it in the same directory where the application exe is present? (If yes then while installing I would just need to copy it along with the application exe in the same directory) 3 If application starts automatically on Windows startup, what would happen if a non-administrator (restricted user) log on? (would the application run with admin rights or with the rights of logged on user?) 4 Are there some registry entries where if an application exe is specified, it will run (on Windows startup) with all the rights the current user have? Please help me in this problem. Best Regards Aseem

    C# csharp help tutorial question

  • How to run program at windows startup with administrator rights (on VISTA and Windows 7 )?
    A Aseem Sharma

    Hi friends, My application needs administrator rights to function properly. If user wants to launch the application manually, he has to right click to pop context menu up and then selecting the option "Run as Administrator". But it could be irritating to so many users. How can the application be started with full/administrator/escalated rights when it is being launched automatically at windows startup? I need to do this on VISTA and Windows 7. Also is it possible that the application, irrespective of if it is launched manually or automatically at startup, always get started with administrator rights? I need to do this thing programmatically (using C# or installshield). Please help me. Thanks in advance, Aseem

    modified on Tuesday, November 2, 2010 1:01 PM

    C# csharp help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups