Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Driver unloading without cancelling operations

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
igoticecream
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Apr 2006
Posts: 1807
Location: 0x00400000

PostPosted: Mon Mar 09, 2009 9:53 pm    Post subject: Driver unloading without cancelling operations Reply with quote

thats the error that i get on unloading a driver i made

"DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATION"


Why this error popup on a cute blue screen only when unloading? this is my function of unload

usermode:
Quote:

void __fastcall TfrmMain::btnUnloadClick(TObject *Sender)
{
ControlService(hService, SERVICE_CONTROL_STOP, &ss);
CloseServiceHandle(hService);
DeleteService(hService);
CloseServiceHandle(hSCManager);
}


the unload function
Code:

void Unload(IN PDRIVER_OBJECT DriverObject)
{   
   
       UNICODE_STRING myDosDeviceName;
 
       DisableInt();
        // i restore some bytes here from a inline hook
      EnableInt();
   
      RtlInitUnicodeString(&myDosDeviceName, L"\\DosDevices\\Arepa");
       IoDeleteSymbolicLink(&myDosDeviceName);

       IoDeleteDevice(DriverObject->DeviceObject);
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites