View Single Post
  #11  
Old 10-01-2018, 05:22
ketan ketan is offline
Friend
 
Join Date: Mar 2005
Posts: 154
Rept. Given: 0
Rept. Rcvd 17 Times in 9 Posts
Thanks Given: 8
Thanks Rcvd at 138 Times in 72 Posts
ketan Reputation: 17
Just add this to your crypter and call it after lc_init,
e.g declare_vid(lm_job, "NSAD_HOSTID", HOSTID_VENDOR+1);

Works for me since v6 at least :-)

void declare_vid(LM_HANDLE_PTR lm_job, char *name, DWORD type)
{
LM_VENDOR_HOSTID h;

memset(&h, 0, sizeof (h));
h.label = name;
h.hostid_num = type;
h.case_sensitive = 0;
h.get_vendor_id = NULL;
if (lc_set_attr(lm_job, LM_A_VENDOR_ID_DECLARE, (LM_A_VAL_TYPE) &h))
lc_perror(lm_job, "LM_A_VENDOR_ID_DECLARE FAILED");

}
Reply With Quote