Guid를 이용한 Creatfile 사용..
App부분.. #include #include #include DEFINE_GUID(SampleGuid, 0x5665dec0, 0xa40a, 0x11d1, 0xb9, 0x84, 0x0, 0x20, 0xaf, 0xd7, 0x97, 0x78); #define MAXDEVICENUMBER 10 int main(int argc, char* argv[]) { SP_INTERFACE_DEVICE_DATA interfaceData; PSP_INTERFACE_DEVICE_DETAIL_DATA pData; DWORD index=0; HANDLE handle[MAXDEVICENUMBER]; char DeviceName[MAXDEVICENUMBER][256]; HDEVINFO Info = SetupDiGetClassDevs..
2008. 10. 7.
Get Process Full path Code
DKOM 방식 char* ProcessNameByPid(IN ULONG Pid) { NTSTATUS status; ANSI_STRING ansi_filepath; PEPROCESS pCurProcess; UNICODE_STRING fullUniName; ULONG Index; char FilePath[256]; POBJECT_NAME_INFORMATION pObjNameInfo =NULL; char* Dos[12]={"C:","D:","E:","F:","G:","H:","I:","J","K","L:","M:","N:"}; status = PsLookupProcessByProcessId((HANDLE)Pid,&pCurProcess); if(!NT_SUCCESS(status)) { DbgPrint("FAIL..
2008. 10. 2.