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
M

Mahesh Kulkarni

@Mahesh Kulkarni
About
Posts
95
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Property sheet-based app has icon problems
    M Mahesh Kulkarni

    i just tried following code it works

    m_prop.m_hIcon = AfxGetApp()->LoadIcon(IDI_MYICON);
    m_prop.m_psh.dwFlags |= PSP_USEHICON;
    m_prop.m_psh.hIcon = m_prop.m_hIcon;
    SetIcon(m_hIcon, TRUE);

    try this may help you...

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

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

  • Problem to run service on Windows 2008 Server
    M Mahesh Kulkarni

    Hi All, Please give some inputs. I am waiting for some clues to move forward. Regards, Mahesh R. Kulkarni

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC help sysadmin windows-admin question learning

  • Problem to run service on Windows 2008 Server
    M Mahesh Kulkarni

    Hi all, I have a windows service which I am trying to run under local system account. It fails with the "error 1053:did not respond in timely manner." This service runs well on Windows 2003 Server. I found Service Hardening enhancemnets made in Windows 2008. It states that if no privilges mentioned for that service means service has all the privilges available for that account. It is given to support backward compatibility. When I attach the service to application verifier tool it runs propely when I check LuaPriv. Once a while when it failed when attached to Apllication Verifier it gave following error. <avrf:message>Access was restricted to trusted users only.</avrf:message> <avrf:formatmessage>RegOpenKeyExA: Key (\REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\WinSock2\Parameters) only grants requested 'KEY_SET_VALUE' to 'BUILTIN\Administrators, NT AUTHORITY\SYSTEM'</avrf:formatmessage> The service is already running under Local System Accoun(NT AUTHORITY\SYSTEM). Can someone give me hint or pointers to solve this problem? I am really stucked here. I already googled for lot of information but no luck. Thanks and Regards, Mahesh R. Kulkarni

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC help sysadmin windows-admin question learning

  • Problem running service on win2k8
    M Mahesh Kulkarni

    void main(void)
    {
    OutputDebugString("Entering : void main(void)");
    SERVICE_TABLE_ENTRY Service_Table_Entry[] = {
    { (LPTSTR) SERVICE_NAME, (LPSERVICE_MAIN_FUNCTION) ServiceMain },
    { 0, 0 },
    };
    hThread = NULL; // Thread for the actual work
    hServiceEventDone = NULL; // Event used to keep ServiceMain from completing
    hThreadServiceDone = NULL; // Event set by ServiceThread indicates exited

    StartServiceCtrlDispatcher(Service\_Table\_Entry)
    OutputDebugString("Exiting : void main(void)");
    

    }

    This is the entrypoint of the service. If I run this service by Domain\administrator account debugview shows "Entering : void main(void)" entry. But, When I try to run this service as Local System Account it not even reaches to "Entering : void main(void)" statement. Thanks in advance. Mahesh R. Kulkarni

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC c++ sysadmin help question learning

  • Problem running service on win2k8
    M Mahesh Kulkarni

    Sure I will update pseudo code tomorrow. Is it ok if I mail it to you. Regards, Mahesh

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC c++ sysadmin help question learning

  • Problem running service on win2k8
    M Mahesh Kulkarni

    Hi Richard, Thanks for the reply. I observed that it doesn't reach to service's main function also.I checked this with OutputdebugString logs. Surprisingly it works fine Domain Administrator account which can be configured by 'This Account' from service properties. And one more thing, same piece of code works on Windows 2003 Server. I suspect that there is something which changed in Windows Server 2008. But I am really stuck here. I googled a lot but can't find the pointer for this. Please let me know if you require any other information on this. Thanks in advance.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC c++ sysadmin help question learning

  • Problem running service on win2k8
    M Mahesh Kulkarni

    Hi All, I have a service application which runs well on win2k3 with Local System Account. When I tried to use the same service on Win2k8 server if failed with Local System Account. It says "The service did not respond to the start or control request in a timely fashion." This service works under domain administrator account. Now I want to run the service as Local System account on win2k8 server.What and where i need to do changes? Service is developed in C++ unmanaged code. Please let me know if anymore information required. Regards, Mahesh R. Kulkarni

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC c++ sysadmin help question learning

  • Word Formatting
    M Mahesh Kulkarni

    Hi All, I have some XML files which contains nodes word formatting nodes e.g..

    w:pPr,w:r,w:t

    . I want to see this XML file without word formatting. Which tool or what setting i need to change to view this file without word formatting. Thanks in Advance.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    XML / XSL xml learning

  • Create icon in Helloworld Application
    M Mahesh Kulkarni

    It will be great if you post solution so that other can refer this question as guideline. Thanks Mahesh

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC help tutorial

  • Add-in
    M Mahesh Kulkarni

    Please check How to Create Outlook AddIN / Plugin[^]and Extending Outlook with new features[^]

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

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

  • Pointer mess
    M Mahesh Kulkarni

    To check the validity of the pointer in Windows there are API functions called IsBadReadPtr and IsBadWritePtr to do that. P.S. While using pointer developer should be careful that pointer is set to NULL once it is deleted. And not to use the deleted pointer before allocating memory.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC tutorial

  • TitleBar
    M Mahesh Kulkarni

    Why this question is repeated?

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC question

  • TitleBar
    M Mahesh Kulkarni

    I think default title bar is something managed by Windows Theme. To achieve the things you want you need to create a custom Title bar. here[^] is one link. You may get many if you search for that. I hope this is the thing you are looking for. Please reply if this is not as expected.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC question

  • Urgent please
    M Mahesh Kulkarni

    Trying to get your question... Are you asking about code which will burn CD on the fly means without copying it on HD?

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC

  • How to get machine model using VC++/MFC without using WMI
    M Mahesh Kulkarni

    I hopeMachine Details[^] link may help you. Please reply if is it not as expected.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC c++ tutorial help

  • Iterate Registry key for value
    M Mahesh Kulkarni

    Is there any way where by providing a VALUE NAME and KEY NAME it will search all the values by iterating sub-keys?

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC windows-admin question learning

  • Any sample code availble?
    M Mahesh Kulkarni

    Sample code for Iterating Directory[^]

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC question

  • Can we get object size from the Interface pointer?
    M Mahesh Kulkarni

    How can we determine the sizeof object from the interface pointer?

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    COM question learning

  • Multiple Inheritance doubt
    M Mahesh Kulkarni

    Try reinterpret_cast insted of static_cast. I dont know the reason why it is so. I will look it in details and update this post later.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC question oop

  • text search
    M Mahesh Kulkarni

    Please elaborate question what exactly you want? I think This Link[^] may give you some guideline.

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    C / C++ / MFC tutorial
  • Login

  • Don't have an account? Register

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