Click here to Skip to main content
15,849,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSyntax Error Pin
Member 1060570217-Mar-14 7:43
Member 1060570217-Mar-14 7:43 
AnswerRe: Syntax Error Pin
Richard Andrew x6417-Mar-14 10:09
professionalRichard Andrew x6417-Mar-14 10:09 
GeneralRe: Syntax Error Pin
Member 1060570217-Mar-14 11:09
Member 1060570217-Mar-14 11:09 
GeneralRe: Syntax Error Pin
Albert Holguin17-Mar-14 13:31
professionalAlbert Holguin17-Mar-14 13:31 
AnswerRe: Syntax Error Pin
Albert Holguin17-Mar-14 13:34
professionalAlbert Holguin17-Mar-14 13:34 
GeneralRe: Syntax Error Pin
Member 1060570218-Mar-14 3:37
Member 1060570218-Mar-14 3:37 
GeneralRe: Syntax Error Pin
Albert Holguin18-Mar-14 6:03
professionalAlbert Holguin18-Mar-14 6:03 
QuestionAbout InstallWinIoDriver function of WinIo.dll Pin
cedricvictor17-Mar-14 4:38
cedricvictor17-Mar-14 4:38 
Dear all:

I use winIo.dll with my project, when I call InstallWinIoDriver function, it always return false, but my application still work,
What happened? There are source code below

C++
bool _stdcall InstallWinIoDriver(PWSTR pszWinIoDriverPath, bool IsDemandLoaded)
{
    SC_HANDLE hSCManager;
    SC_HANDLE hService;
    // Remove any previous instance of the driver
    RemoveWinIoDriver();
    
    hSCManager = OpenSCManager(NULL, NULL,     
    SC_MANAGER_ALL_ACCESS);
    
    if(hSCManager)
    {
     // Install the driver
     hService = CreateService(hSCManager, L"WINIO", L"WINIO",   
     SERVICE_ALL_ACCESS, SERVICE_KERNEL_DRIVER, (IsDemandLoaded  
     == true) ? SERVICE_DEMAND_START : SERVICE_SYSTEM_START, 
     SERVICE_ERROR_NORMAL, pszWinIoDriverPath, NULL, NULL, NULL, 
     NULL, NULL);
	
      CloseServiceHandle(hSCManager);
     if(hService == NULL)
        return false;                   //strange 
    }
    else
        return false;                  //strange
        CloseServiceHandle(hService);  //strange
        return true;                   //strange
}



Thanks for your help, Victor
AnswerRe: About InstallWinIoDriver function of WinIo.dll Pin
Gisle Vanem17-Mar-14 4:46
Gisle Vanem17-Mar-14 4:46 
AnswerRe: About InstallWinIoDriver function of WinIo.dll Pin
Randor 17-Mar-14 10:31
professional Randor 17-Mar-14 10:31 
GeneralRe: About InstallWinIoDriver function of WinIo.dll Pin
cedricvictor18-Mar-14 3:30
cedricvictor18-Mar-14 3:30 
QuestionVisual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti16-Mar-14 22:07
KrishnaRayalu_Talisetti16-Mar-14 22:07 
AnswerRe: Visual c++ 6 freeware ? Pin
CPallini16-Mar-14 23:25
mveCPallini16-Mar-14 23:25 
GeneralRe: Visual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti17-Mar-14 0:45
KrishnaRayalu_Talisetti17-Mar-14 0:45 
GeneralRe: Visual c++ 6 freeware ? Pin
CPallini17-Mar-14 0:54
mveCPallini17-Mar-14 0:54 
AnswerRe: Visual c++ 6 freeware ? Pin
Jochen Arndt16-Mar-14 23:32
professionalJochen Arndt16-Mar-14 23:32 
GeneralRe: Visual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti17-Mar-14 0:48
KrishnaRayalu_Talisetti17-Mar-14 0:48 
GeneralRe: Visual c++ 6 freeware ? Pin
Jochen Arndt17-Mar-14 1:04
professionalJochen Arndt17-Mar-14 1:04 
GeneralRe: Visual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti17-Mar-14 1:46
KrishnaRayalu_Talisetti17-Mar-14 1:46 
AnswerRe: Visual c++ 6 freeware ? Pin
Albert Holguin17-Mar-14 13:37
professionalAlbert Holguin17-Mar-14 13:37 
QuestionMFC CreateCompatibleDC(), Drawtext() no display [Solved] Pin
econy16-Mar-14 17:23
econy16-Mar-14 17:23 
AnswerRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
CPallini17-Mar-14 0:41
mveCPallini17-Mar-14 0:41 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 4:01
econy17-Mar-14 4:01 
AnswerRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger17-Mar-14 4:33
professionalChris Losinger17-Mar-14 4:33 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 5:09
econy17-Mar-14 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.