Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure ***;
- var hRes: THandle;
- pRes: Pointer;
- begin
- try
- hRes := LoadResource(HInstance, FindResource(HInstance, 'HIT', RT_RCDATA));
- if hRes=0 then exit;
- pRes:= LockResource(hRes);
- if pRes=nil then Exit;
- PlaySound(pRes, 0, SND_MEMORY or SND_ASYNC);
- finally
- FreeResource(hRes);
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement