PUNICODE_STRING DrvGetLoadName() { const char s_template[] = "\\registry\\machine\\SYSTEM\\CurrentControlSet\\Services\\"DRIVER_NAME; WCHAR ws_loadname[1024]; PUNICODE_STRING pusDrvName; // HeapAlloc pusDrvName = (PUNICODE_STRING)utilsHAlloc(sizeof(UNICODE_STRING)); MultiByteToWideChar(CP_ACP, 0, (LPCSTR)s_template, -1, ws_loadname, 1024); RtlInitUnicodeString(pusDrvName, ws_loadname); return pusDrvName; }