def test_RGetServiceKeyNameW(self): dce, rpctransport, scHandle = self.connect() lpDisplayName = 'Plug and Play\x00' lpcchBuffer = len(lpDisplayName)+100 scmr.hRGetServiceKeyNameW(dce, scHandle, lpDisplayName, lpcchBuffer) scmr.hRCloseServiceHandle(dce, scHandle)